Skip to content

Commit

Permalink
rename caches
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Nov 11, 2024
1 parent 07cbe41 commit e334fde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getSDK } from "https://webdraw.ai/webdraw-sdk";

const cache = await caches.open("react-standalone::v4");
const cache = await caches.open("react-standalone::v5");

function filepathToMimeType(filepath) {
if (/\.(tsx?|jsx?)$/.test(filepath)) {
Expand Down
4 changes: 2 additions & 2 deletions sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ self.addEventListener("fetch", (event) => {
event.respondWith(route(event.request));
});

const NETWORK_CACHE_NAME = "react-standalone::v4";
const TRANSPILATION_CACHE_NAME = `react-standalone::transpiled::v4`;
const NETWORK_CACHE_NAME = "react-standalone::v5";
const TRANSPILATION_CACHE_NAME = `react-standalone::transpiled::v5`;

/**
* Clear old caches because browser performs caches.match
Expand Down

0 comments on commit e334fde

Please sign in to comment.