⚡ Developer · Client-side · No data sent to server
Nginx Browser Caching Generator
Generate Nginx location blocks that set expires and Cache-Control headers per file type. Pick how long each asset group should be cached and copy the result into your server block.
Cache lifetime per file type
File types that share the same lifetime are grouped into a single location block to keep the config tidy.
Options
Copied
Where this goes. Paste the location blocks inside your
server block, then run nginx -t && systemctl reload nginx. The expires directive sets both the Expires and Cache-Control max-age headers. Rules are built in your browser.