[gatsby] gatsby serve
cache paramaters
#32480
Replies: 2 comments
-
Hey @moonmeister 👋 I think Also, to clarify this a bit - which part doesn't work as you would expect. Caching headers for static assets? Something else? |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
For anyone using
gatsby serve
cache headers are not being set correctly.Steps to reproduce
gatsby build
gatsby serve
localhost:9000
Expected result
I'd expect Gatsby's provided server implementation to follow best practices.
https://www.gatsbyjs.com/docs/caching/
Actual result
Gatsby serve appears to set cache headers as
public, max-age=0
for all files which is wrong according to https://www.gatsbyjs.com/docs/caching/.Environment
Beta Was this translation helpful? Give feedback.
All reactions