next.js
818be9ae - Warn when overriding Cache-Control header on `/_next/` routes (#88353)

Commit
53 days ago
Warn when overriding Cache-Control header on `/_next/` routes (#88353) Custom `Cache-Control` headers on `/_next/` routes can cause hard-to-debug development behaviors. Normally the dev server sends no-cache values to ensure that assets are always fresh. If a developer sets the max-age or immutable flag,, the browser can cache resources between requests, even if the source changes. Adding a warning will at least make this problem easier to debug.
Author
Parents
Loading