Skip to content

Commit

Permalink
Fix caching requests marked as non-cacheable
Browse files Browse the repository at this point in the history
  • Loading branch information
frosas committed Dec 4, 2017
1 parent 850cf17 commit ef03825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const isCacheableRequest = request => {
const url = new URL(request.url);
return (
request.method === "GET" &&
!url.search.match(/[?&]nocache[&$]/) &&
!url.search.match(/[?&]nocache(&|$)/) &&
url.protocol.match(/^https?:/)
);
};
Expand Down

0 comments on commit ef03825

Please sign in to comment.