Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cache-Control and Last-Modified and ETag, oh my...

Cache-Control and Last-Modified and ETag, oh my! @ Kansas City Developer Conference

Ever wonder exactly what combination of Cache-Control, Last-Modified, Expires, ETag, Vary, and Pragma headers will keep your content cached by browsers just long enough? And what exactly is a HTTP 304 anyway?

In this talk, we’ll take a look around at the available HTTP caching headers, what their values mean, and how browsers and proxies react. We’ll cover the best practices on client cache invalidation, the benefits of sending a Not Modified response, and briefly talk about the changes in HTTP 2.0 (SPDY) around caching.

Andrew Dunkman

May 17, 2014
Tweet

More Decks by Andrew Dunkman

Other Decks in Technology

Transcript

  1. If a response has both! Expires: <now + 1 year>!

    and! Cache-Control: max-age=15! how long is it cached?