caching tweaks

This commit is contained in:
Matthias Kretschmann 2019-11-09 20:26:29 +01:00
parent 8bc26fe316
commit cad9310c04
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 4 additions and 2 deletions

View File

@ -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()

View File

@ -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" \