Skip to content

Commit

Permalink
Update the service worker with new documents
Browse files Browse the repository at this point in the history
The Invitation Policy, Privacy Policy, and Stages documents were not cached. Also sort these in the same order they are in .gitignore.
  • Loading branch information
annevk committed May 2, 2024
1 parent c2e01b2 commit fc417a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Keep this list synchronized with https://github.com/whatwg/sg/blob/main/policy-link-mapping.txt
# as well as whatwg.org/service-worker.js
whatwg.org/ipr-policy
whatwg.org/workstream-policy
whatwg.org/sg-agreement
Expand Down
13 changes: 8 additions & 5 deletions whatwg.org/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

self.cacheKey = "v4";
self.cacheKey = "v5";
self.toCache = [
"/img/arrow.svg",
"/img/bird-webpage.svg",
Expand All @@ -10,15 +10,18 @@ self.toCache = [
"/validator/",
"/faq",
"/chat",
"/policies",
"/principles",
"/style-guide",
"/ipr-policy",
"/workstream-policy",
"/sg-agreement",
"/invitation-policy",
"/sg-policy",
"/code-of-conduct",
"/principles",
"/privacy-policy",
"/policies",
"/working-mode",
"/sg-agreement",
"/sg-policy"
"/stages"
];

importScripts("https://resources.whatwg.org/website-service-worker.js");

0 comments on commit fc417a5

Please sign in to comment.