Skip to content

Fix cache-control header for non-HTML sec-fetch-dest 404 route - #91

Closed
gaearon wants to merge 1 commit into
gaearon-not-foundfrom
gaearon-not-found-cache-control
Closed

Fix cache-control header for non-HTML sec-fetch-dest 404 route#91
gaearon wants to merge 1 commit into
gaearon-not-foundfrom
gaearon-not-found-cache-control

Conversation

@gaearon

@gaearon gaearon commented Jul 29, 2026

Copy link
Copy Markdown

The dest is a static asset (/_next/static/not-found.txt), which gets
a default public, cacheable Cache-Control header from the CDN unless
overridden. This diverged from the Cache-Control Next.js itself sets
for the equivalent response when the app is invoked directly.


Stack created with GitHub Stacks CLIGive Feedback 💬

The dest is a static asset (/_next/static/not-found.txt), which gets
a default public, cacheable Cache-Control header from the CDN unless
overridden. This diverged from the Cache-Control Next.js itself sets
for the equivalent response when the app is invoked directly.
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
adapter-vercel-adapter Ready Ready Preview, Comment Jul 29, 2026 7:29pm

@changeset-bot

changeset-bot Bot commented Jul 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2e171a7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@gaearon

gaearon commented Jul 29, 2026

Copy link
Copy Markdown
Author

Superseded — folding this into a trunk-level fix plus a shared helper so PR #89's new route stays consistent with the pre-existing one.

@gaearon gaearon closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant