Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: incorrect cache control on static chunks when using basePath #741

Open
1 task done
ostenbom opened this issue Apr 11, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@ostenbom
Copy link
Contributor

ostenbom commented Apr 11, 2024

next-on-pages environment related information

latest / ^1.11.0

Description

When using the basePath next config option, the Cache-Control of _next/static files comes up as public, max-age=0, must-revalidate. These should be immutable files with the Cache-Control public,max-age=31536000,immutable.

Screenshot 2024-04-11 at 10 27 54

Reproduction

  1. npm create cloudflare@latest my-next-app -- --framework=next
  2. Add basePath: "/hello", to the next config
  3. Observe Cache-Control on _next/static/chunks

Pages Deployment Method

None

Pages Deployment ID

https://f86f21c8.my-next-app-6i8.pages.dev/hello

Additional Information

No response

Would you like to help?

  • Would you like to help fixing this bug?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant