diff --git a/gatsby-config.js b/gatsby-config.js index 6dee206d38..51268fd9e5 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -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"], }, }, },