According to RFC 7231, a response is considered cacheable when its status code is one of 200, 203, 204, 206, 300, 301, 404, 405, 410, 414 or 501.

In FOSHttpCacheBundle, this can be changed by configuring the cacheable.response section.


A request is safe if its HTTP method is GET or HEAD. Safe methods only retrieve data and do not change the application state, and therefore can be served with a response from the cache.