Skip to content

Commit

Permalink
feat(gatsby-plugin-netlify) Do not cache service worker file
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieuauger committed Nov 3, 2018
1 parent a8aa875 commit fc40c49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/gatsby-plugin-netlify/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: <\/)(.+)(>;.+)/
Expand Down

0 comments on commit fc40c49

Please sign in to comment.