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.
Showing
Please
register
or
sign in
to comment