|
|
|
|
|
by rileymat2
1259 days ago
|
|
> This allows us to invoke GETs safely any number of times in any order and get the same results each time. An important consequence of this is that it allows any participant in the routing of requests to use caching, which is a key element in making the web perform as well as it does. What conditions for a restful api does this come in handy? In most implementations I have had the requests are as quick to figure out if anything has changed as it is to return the result. The problem is not that a get changes the result, it is a post from some other client has changed it in the interim and you want the freshest data. Id imagine it is most useful in serving static content that has large payloads, which most of my apis don’t serve. |
|