mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +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
|
// https://www.gatsbyjs.org/docs/add-offline-support-with-a-service-worker/#displaying-a-message-when-a-service-worker-updates
|
||||||
export const onServiceWorkerUpdateReady = () => {
|
export const onServiceWorkerUpdateReady = () => {
|
||||||
const answer = window.confirm(
|
const answer = window.confirm(
|
||||||
`This application has been updated. ` +
|
'This application has been updated. ' +
|
||||||
`Reload to display the latest version?`
|
'Reload to display the latest version?'
|
||||||
)
|
)
|
||||||
if (answer === true) {
|
if (answer === true) {
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
|
@ -16,6 +16,7 @@ function s3sync {
|
|||||||
--exclude "*.html" \
|
--exclude "*.html" \
|
||||||
--exclude "sw.js" \
|
--exclude "sw.js" \
|
||||||
--exclude "*page-data.json" \
|
--exclude "*page-data.json" \
|
||||||
|
--exclude "*app-data.json" \
|
||||||
--exclude "chunk-map.json" \
|
--exclude "chunk-map.json" \
|
||||||
--exclude "sitemap.xml" \
|
--exclude "sitemap.xml" \
|
||||||
--exclude ".iconstats.json" \
|
--exclude ".iconstats.json" \
|
||||||
@ -30,6 +31,7 @@ function s3sync {
|
|||||||
--include "*.html" \
|
--include "*.html" \
|
||||||
--include "sw.js" \
|
--include "sw.js" \
|
||||||
--include "*page-data.json" \
|
--include "*page-data.json" \
|
||||||
|
--include "*app-data.json" \
|
||||||
--include "chunk-map.json" \
|
--include "chunk-map.json" \
|
||||||
--include "sitemap.xml" \
|
--include "sitemap.xml" \
|
||||||
--include ".iconstats.json" \
|
--include ".iconstats.json" \
|
||||||
|
Loading…
Reference in New Issue
Block a user