Gatsby: Documentation about caching javascripts assets needs an update

Created on 16 Oct 2018  路  5Comments  路  Source: gatsbyjs/gatsby

Description

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

Steps to reproduce

mmmh, visit the documentation link https://www.gatsbyjs.org/docs/caching/#javascript

Expected result

have the documentation about caching javascript assets for gastsby v2

Actual result

The documentation describe what to do for gatsby v1

Environment

/

Thanks !

Hacktoberfest documentation

Most helpful comment

Hello I think I can work on this one!

All 5 comments

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.

Thank you very much 馃憤

Was this page helpful?
0 / 5 - 0 ratings