Skip to content

Commit

Permalink
chore: update cache versions
Browse files Browse the repository at this point in the history
  • Loading branch information
danji90 committed Aug 20, 2024
1 parent 29c8cb2 commit 1abfd0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1abfd0c

Please sign in to comment.