From cad9310c0421bbeced93f93804ecffabde516156 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 9 Nov 2019 20:26:29 +0100 Subject: [PATCH] caching tweaks --- gatsby-browser.js | 4 ++-- scripts/deploy.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gatsby-browser.js b/gatsby-browser.js index 066084a..176fbad 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -27,8 +27,8 @@ export const wrapPageElement = wrapPageElementWithLayout // https://www.gatsbyjs.org/docs/add-offline-support-with-a-service-worker/#displaying-a-message-when-a-service-worker-updates export const onServiceWorkerUpdateReady = () => { const answer = window.confirm( - `This application has been updated. ` + - `Reload to display the latest version?` + 'This application has been updated. ' + + 'Reload to display the latest version?' ) if (answer === true) { window.location.reload() diff --git a/scripts/deploy.sh b/scripts/deploy.sh index e9dd3bc..2170ca5 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -16,6 +16,7 @@ function s3sync { --exclude "*.html" \ --exclude "sw.js" \ --exclude "*page-data.json" \ + --exclude "*app-data.json" \ --exclude "chunk-map.json" \ --exclude "sitemap.xml" \ --exclude ".iconstats.json" \ @@ -30,6 +31,7 @@ function s3sync { --include "*.html" \ --include "sw.js" \ --include "*page-data.json" \ + --include "*app-data.json" \ --include "chunk-map.json" \ --include "sitemap.xml" \ --include ".iconstats.json" \