Skip to content

Commit

Permalink
network first for html
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardZaydler committed Oct 16, 2024
1 parent 4859122 commit 15475ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ precacheAndRoute(self.__WB_MANIFEST.filter((entry) => !entry.url.includes("index
registerRoute(
({ request }) =>
request.mode === "navigate" ||
request.headers.get("accept")?.includes("text/html" && !request.url.includes("oauth")),
request.headers.get("accept")?.includes("text/html" && !url.href.includes("oauth")),

new NetworkFirst({
cacheName: "html-pages",
Expand Down

0 comments on commit 15475ff

Please sign in to comment.