Loadingβ¦
Tell browsers to cache static assets so repeat visits load almost instantly.
Without cache headers, the browser re-downloads your CSS, JS and images on every visit. Long-lived caching for fingerprinted (hashed) assets makes repeat visits near-instant and cuts server load.
immutable β a new deploy gets a new filename.no-cache) so users get new content while assets stay cached.# No Cache-Control on /static/* assets# Fingerprinted assets
Cache-Control: public, max-age=31536000, immutable
# HTML documents
Cache-Control: public, max-age=0, must-revalidateA caching plugin or your CDN sets far-future expiry on static files. Confirm in DevTools β Network that assets return cache-control: max-age.
Next.js already serves /_next/static with immutable long cache; configure other static files in your proxy.
Run a free audit and get a prioritized fix list with auto-generated code.
Run a free audit