
Scalable Stories · Monday · 11 min
NGINX Immutable Module: Far-Future Cache-Control Headers
0:00-11:10
transcript
show notes
Technical Briefing: Far-Future Cache-Control for Versioned Assets with the NGINX Immutable Module The Problem Cache-busted assets such as /assets/app.a3f2c9.css carry a content hash in the URL, so a given URL's content cannot change. Browsers still revalidate them with If-None-Match requests. Each revalidation costs: a TCP round-trip (or TLS resume), a stat() syscall, log I/O, a 304 response write. That cost repeats for every asset and every return visitor. The Fix Add one directive to a locati…