Documentation about caching javascript is outdated:
https://www.gatsbyjs.org/docs/caching/#javascript
Other files e.g. JavaScript files are not (yet) cachable. Gatsby v1 is using webpack 1 which doesn鈥檛 make it possible to produce paths tied directly to the content of the file. Gatsby v2 will ship with webpack 4 which will make possible long-term caching of our JavaScript files.
The cache-control header should be cache-control: public, max-age=0, must-revalidate
mmmh, visit the documentation link https://www.gatsbyjs.org/docs/caching/#javascript
have the documentation about caching javascript assets for gastsby v2
The documentation describe what to do for gatsby v1
/
Thanks !
Agreed! I've added the hacktoberfest labels so hopefully someone will claim this one 馃挭
Hello I think I can work on this one!
Awesome, thanks @tanvibhakta! Adding the "claimed" label.
We also need to update gatsby-plugin-netlify as part of this change https://github.com/gatsbyjs/gatsby/blob/6951db0864190015d05d763980e34424db9fbc39/packages/gatsby-plugin-netlify/src/constants.js#L28
Thank you very much 馃憤
Most helpful comment
Hello I think I can work on this one!