mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 09:13:19 +01:00
caching tweaks
This commit is contained in:
parent
8bc26fe316
commit
cad9310c04
@ -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()
|
||||
|
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user