by codeka · 14y ago · 0 comments
> Responses to this method are not cacheable, unless the response includes appropriate Cache-Control or Expires header fields.
That is, if you don't include a Cache-Control header, the response is not cacheable. Why is this even controversial? It's a bug.
For a longer, more detailed discussion with references to the RFC, see https://news.ycombinator.com/item?id=4552251 .
I would still argue that caching a POST response with max-age=0 (and no max-stale) is a bug because, while the standard technically allows it, it also technically allows the client to immediately invalidate it and immediately invalidating is the saner choice (at least, it's the choice that is going to break fewer websites).