Skip to content

Commit d6109d9

Browse files
committed
update sw.js
1 parent 84b72bd commit d6109d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/sw.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const addResourcesToCache = async (resources) => {
2323
*/
2424
const putInCache = async (request, response) => {
2525
const url = new URL(request.url);
26-
if (url.protocol === "chrome-extension:") {
26+
if (url.protocol === "chrome-extension:" || request.method !== "GET") {
2727
return;
2828
}
2929
const cache = await caches.open(CACHE_KEY);

0 commit comments

Comments
 (0)