-
Notifications
You must be signed in to change notification settings - Fork 92
fix: revert "fix(perf): exclude /_next/static/*
from generated functions (#3100)"
#3123
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
Conversation
@@ -98,7 +98,7 @@ export const test = base.extend< | |||
if (response.url().includes('/_next/static/')) { | |||
expect( | |||
response.headers()['cache-control'], | |||
`_next/static asset (${response.url()}) should have immutable cache control`, | |||
'_next/static assets should have immutable cache control', |
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.
Could optionally keep this change
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.
I think we can re-add it later, ideally we end up with some solution that does exclude _next/static
from lambda without causing 404s to have public,max-age=31536000, immutable
.
I don't want to delay merging and releasing it by doign adjustments here
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.
#3124 For the restoration of this and the i18n+basePath test adjustments
📊 Package size report -0.02%↓
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
@@ -1382,15 +1352,13 @@ test.describe('Page Router with basePath and i18n', () => { | |||
|
|||
test('requesting a non existing page route that needs to be fetched from the blob store like 404.html', async ({ | |||
page, | |||
pageRouterBasePathI18n, |
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.
I think we still want these test changes
/_next/static/*
from generated functions (#3100)"/_next/static/*
from generated functions (#3100)"
This reverts commit 5e28132.
Description
#3100 caused not intended bug where
_next/static
404s getpublic,max-age=31536000, immutable
which is wrong - that should only be applied to 200sFixes #3119
BEGIN_COMMIT_OVERRIDE
fix: revert "fix(perf): exclude /_next/static/* from generated functions (#3100)"
END_COMMIT_OVERRIDE