From 60179c00fbdbc63f742bd7cb8b84ac014c9b26d2 Mon Sep 17 00:00:00 2001 From: tubone Date: Sun, 27 Feb 2022 02:08:10 +0000 Subject: [PATCH] cache-control --- gatsby-config.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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"], }, }, },