Caching

Different Kind of Caches

HTTP Expiration and Validation

Expiration - Expires Header

Expires: Fri, 30 Oct 1998 14:19:41 GMT

Expiration - Cache Control Header

Cache-Control: max-age=3600, public

--> image proxy / gateway / browser cache

Cache-Control is preferred against Expires

Validation - Last-Modified

Response: Last-Modified Request: If-Modified-Since

--

Validation - ETag

Generated by Server Change every time, when representation does

->image

General Tips

Ressources: http://symfony.com/doc/current/book/http_cache.html http://www.mnot.net/cache_docs/ http://tomayko.com/writings/things-caches-do