diff --git a/packages/gatsby-plugin-netlify/src/constants.js b/packages/gatsby-plugin-netlify/src/constants.js index 88ad51b7fbc9c..cfcc302f9fd01 100644 --- a/packages/gatsby-plugin-netlify/src/constants.js +++ b/packages/gatsby-plugin-netlify/src/constants.js @@ -26,6 +26,7 @@ export const SECURITY_HEADERS = { export const CACHING_HEADERS = { "/static/*": [`Cache-Control: public, max-age=31536000, immutable`], + "/sw.js": [`Cache-Control: no-cache`], } export const LINK_REGEX = /^(Link: <\/)(.+)(>;.+)/