Created
January 13, 2022 16:53
-
-
Save CesarBenavides777/dc96f7b64c4329e6a7eaf09798b4003d to your computer and use it in GitHub Desktop.
Caching on gatsby cloud in gatsby-config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
resolve: `gatsby-plugin-gatsby-cloud`, // `gatsby-plugin-gatsby-cloud` | |
options: { | |
allPageHeaders: [ | |
'Strict-Transport-Security: max-age=31536000; includeSubDomains; preload', | |
], | |
headers: { | |
'/*': ['Cache-Control: public, max-age=31536000, immutable'], | |
'static/*': ['Cache-Control: public, max-age=31536000, immutable'], | |
}, | |
}, | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment