-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow adding custom Vary
to static assets header
#2835
base: v2
Are you sure you want to change the base?
Conversation
Vary
to static assets header
Vary
to static assets headerVary
to static assets header
Hi! I'm the autofix.ci troubleshooter bot. It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! π |
@@ -310,6 +310,20 @@ export function testNitro( | |||
expect(data).toMatch("<h1 >Hello JSX!</h1>"); | |||
}); | |||
|
|||
it.skipIf(ctx.preset.startsWith('cloudflare') || ctx.preset === 'vercel-edge')( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the issue with this two diff in space? (we can normalize headers['vary']
to remove space)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I had something even different with Accept-Encoding not applying at all. I guess it depends on serve static param
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right (when ctx.nitro.options.serveStatic
is off we don't even use this)
π Linked issue
Closes #2834
β Type of change
π Description
Allow to auto-extend Vary header if Accept-Encoding is passed from Nitro.
π Checklist