Skip to content

Page html is cached by client for too long? gatsby-plugin-netlify #27696

Answered by Ortimis
Ortimis asked this question in Help
Discussion options

You must be logged in to vote

@herecydev thank you for pointing this out, my mistake was to not install gatsby-plugin-netlify.

_headers file now looks like this, should work, I hope

## Created with gatsby-plugin-netlify

/*
  X-Frame-Options: DENY
  X-XSS-Protection: 1; mode=block
  X-Content-Type-Options: nosniff
  Referrer-Policy: same-origin
/styles.e6c97708c70b19476349.css
  Cache-Control: public, max-age=31536000, immutable
/styles-407fe62976dc5310c43e.js
  Cache-Control: public, max-age=31536000, immutable
/commons-7f55018da8e8b96acb2d.js
  Cache-Control: public, max-age=31536000, immutable
/component---src-templates-page-template-js-814ebccd420a7c6d26e3.js
  Cache-Control: public, max-age=31536000, immutable
/c…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@herecydev
Comment options

Answer selected by Ortimis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #27696 on October 29, 2020 08:20.