HTTP Caching

June 28, 2023

© David Buchmann

But... why?

HTTP: Your browser chats with the webserver


GET /path
Accept-Encoding: text/html


HTTP/1.1 200 OK
Content-Type: text/html


HTTP verbs

HTTP response codes

HTTP Cache Control

Cache control headers

HTTP 1.1, RFC 2616, Sections 13.2 and 13.3

Cache Expiration

Cache-Control: s-maxage=3600, max-age=900
Expires: Thu, 15 May 2014 08:00:00 GMT

Cache validation