Skip to content

Commit

Permalink
cache-control
Browse files Browse the repository at this point in the history
  • Loading branch information
tubone24 committed Feb 27, 2022
1 parent 8687350 commit 60179c0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,17 @@ module.exports = {
resolve: "gatsby-plugin-netlify", // make sure to put last in the array
options: {
headers: {
"/*.html": ["cache-control: public, max-age=0, must-revalidate"],
"/*.json": ["cache-control: public, max-age=0, must-revalidate"],
"/page-data/*": ["cache-control: public, max-age=0, must-revalidate"],
"/static/*": ["cache-control: public, max-age=31536000, immutable"],
"/assets/*": ["cache-control: public, max-age=31536000, immutable"],
"/favicons/*": ["cache-control: public, max-age=31536000, immutable"],
"/icons/*": ["cache-control: public, max-age=31536000, immutable"],
"/fonts/*": ["cache-control: public, max-age=31536000, immutable"],
"/sw.js": ["cache-control: public, max-age=0, must-revalidate"],
"/**/*.js": ["cache-control: public, max-age=31536000, immutable"],
"/**/*.css": ["cache-control: public, max-age=31536000, immutable"],
"/*.html": ["Cache-Control: public, max-age=0, must-revalidate"],
"/*.json": ["Cache-Control: public, max-age=0, must-revalidate"],
"/page-data/*": ["Cache-Control: public, max-age=0, must-revalidate"],
"/static/*": ["Cache-Control: public, max-age=31536000, immutable"],
"/assets/*": ["Cache-Control: public, max-age=31536000, immutable"],
"/favicons/*": ["Cache-Control: public, max-age=31536000, immutable"],
"/icons/*": ["Cache-Control: public, max-age=31536000, immutable"],
"/fonts/*": ["Cache-Control: public, max-age=31536000, immutable"],
"/sw.js": ["Cache-Control: public, max-age=0, must-revalidate"],
"/**/*.js": ["Cache-Control: public, max-age=31536000, immutable"],
"/**/*.css": ["Cache-Control: public, max-age=31536000, immutable"],
},
},
},
Expand Down

0 comments on commit 60179c0

Please sign in to comment.