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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS chunks are served with max-age=0 #10182

Closed
znarf opened this issue Jan 21, 2020 · 2 comments · Fixed by #10184
Closed

CSS chunks are served with max-age=0 #10182

znarf opened this issue Jan 21, 2020 · 2 comments · Fixed by #10184
Labels
kind: bug Confirmed bug that is on the backlog
Milestone

Comments

@znarf
Copy link

znarf commented Jan 21, 2020

Bug report

When using the new integrated CSS support in 9.2.0, CSS chunks are served with max-age=0 in the Cache-Control header.

To Reproduce

  • Create a global CSS: _app.css: body { background-color: red }
  • Link CSS in _app.js: import './_app.css'
  • Build the app: npm run build
  • Start the app in production environment: npm run start
  • Inspect the Cache-Control header of the CSS chunk being served

Current behavior

public, max-age=0

Expected Behavior

public, max-age=31536000, immutable

System information

  • Version of Next.js: 9.2.0

Additional context

It's similar to an issue that was previously raised for the next-css plugin: #5464

@Timer
Copy link
Member

Timer commented Jan 21, 2020

Fixed via #10184

@Timer Timer added the kind: bug Confirmed bug that is on the backlog label Jan 21, 2020
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind: bug Confirmed bug that is on the backlog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants