Skip to content

Commit 219ed2e

Browse files
committed
chore: bump cache
1 parent b2da6cd commit 219ed2e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

static/sw.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// deno-lint-ignore-file no-unused-vars
2-
const CACHE_VERSION = "v27"; // Increment this when you have new features
2+
const CACHE_VERSION = "v28"; // Increment this when you have new features
33
// const STATIC_CACHE = `andromeda-static-${CACHE_VERSION}`;
44
const DYNAMIC_CACHE = `andromeda-dynamic-${CACHE_VERSION}`;
55

@@ -376,9 +376,10 @@ async function cacheIfAllowed(
376376
) {
377377
try {
378378
if (!response || !response.ok) return;
379-
const ct = (response.headers &&
380-
response.headers.get &&
381-
response.headers.get("content-type")) ||
379+
const ct =
380+
(response.headers &&
381+
response.headers.get &&
382+
response.headers.get("content-type")) ||
382383
"";
383384
if (
384385
ct.startsWith("image/") ||

0 commit comments

Comments
 (0)