Skip to content

Commit

Permalink
Undo cache renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep committed Sep 18, 2023
1 parent ca413a3 commit dfa1a75
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/entrypoints/service_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ const initRouting = () => {
// Cache static content (including translations) on first access.
registerRoute(
/\/(static|frontend_latest|frontend_es5)\/.+/,
new CacheFirst({
cacheName: "static",
matchOptions: { ignoreSearch: true },
})
new CacheFirst({ matchOptions: { ignoreSearch: true } })
);

// Cache any brand images used for 30 days
Expand Down Expand Up @@ -75,7 +72,7 @@ const initRouting = () => {
registerRoute(
/\/.*/,
new StaleWhileRevalidate({
cacheName: "other",
cacheName: "file-cache",
plugins: [
new ExpirationPlugin({
maxAgeSeconds: 60 * 60 * 24,
Expand Down

0 comments on commit dfa1a75

Please sign in to comment.