diff --git a/src/service-worker.js b/src/service-worker.js index e933aaea..a425e0d1 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -12,7 +12,7 @@ import { precacheAndRoute, createHandlerBoundToURL } from 'workbox-precaching'; import { registerRoute } from 'workbox-routing'; const soPdfCacheString = 'so-data-v'; // IMPORTANT: This string should NEVER be changed, otherwise the old caches will not be identifyable anymore -const currentSoPdfVersion = 2; // Current SO PDF version, needs to be increased every time new PDFs are deployed +const currentSoPdfVersion = 1; // Current SO PDF version, needs to be increased every time new PDFs are deployed const SO_CACHE_NAME = `${soPdfCacheString}${currentSoPdfVersion}` // Cache name for SO profile data // Create an array of 'so-data-v[1 - currentVersion]' strings for the caches to be removed @@ -21,7 +21,7 @@ const OLD_SO_PDF_CACHES = Array.from(Array(currentSoPdfVersion).keys()).map( ); const tileCacheString = 'tree-app-tiles-v'; // IMPORTANT: This string should NEVER be changed, otherwise the old caches will not be identifyable anymore -const currentTileVersion = 20; // Current tile version, needs to be increased every time new tiles are deployed +const currentTileVersion = 21; // Current tile version, needs to be increased every time new tiles are deployed const TILE_CACHE_NAME = `${tileCacheString}${currentTileVersion}`; // Create an array of 'tree-app-tiles-v[1 - currentVersion]' strings for the caches to be removed