Skip to content

Commit

Permalink
Test SW(3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylfyt committed Mar 3, 2024
1 parent c2ece98 commit 4f3bb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ self.addEventListener('fetch', e => {

try {
const response = await fetch(e.request);
const isNotExtension = url.protocol === 'http:';
const isNotExtension = url.protocol === 'https:' || url.protocol === 'http:';
const isSuccess = response.status === 200;
if (isNotExtension && isSuccess) {
cache.put(e.request, response.clone());
Expand Down

0 comments on commit 4f3bb79

Please sign in to comment.