-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do PUT requests get cached by intermediaries? #74
Comments
PUT should never be catched. In any case, post/redirect/get could be used here, too (just put instead). |
Let me clarify -- my primary concern is that the response to a PUT request could be cached. Imagine you're on a corporate LAN behind a Squid HTTP proxy, and do this:
I'm concerned that the proxy will notice that your previous |
So do redirect always as response to PUT. :-) |
See also: https://stackoverflow.com/questions/626057/is-it-possible-to-cache-post-methods-in-http So interesting is that PUT also invalidates the cache of GET for same URI. |
I'm realizing this is an instance of the more general problem of feature detection (issue #89). The issue occurs when you do a I'm closing this issue, and adding a note in feature detection (#89) that we need to ensure it works across proxies as well. |
I'm concerned that the PUT request could be incorrectly cached by intermediaries that don't understand the Braid extensions.
For instance, if we send a PUT with a patch, might a proxy think that the patch is the new value of the resource, rather than just a patch to apply to the resource?
If so, we might need to use a new response code, or
cache-control: no-cache
, as discussed in #16. Alternatively, we might want to require using the PATCH method instead of PUT.The text was updated successfully, but these errors were encountered: