Skip to content

Commit 02319fa

Browse files
authored
Add exceptions for SW cache for PB process (#57)
* Add exceptions for SW cache for PB process * Add expected word to spellcheck
1 parent c41a526 commit 02319fa

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

  • .github/actions/spelling
  • decidim-core/app/packs/src/decidim/sw

.github/actions/spelling/expect.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ preheader
706706
premailer
707707
Preproc
708708
presenceness
709+
pressupostos
709710
previewer
710711
previewurl
711712
privatable

decidim-core/app/packs/src/decidim/sw/sw.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ self.addEventListener("notificationclick", (event) => {
5151
});
5252

5353
// avoid caching admin or users paths
54+
// also workaround for barcelona PB
5455
registerRoute(
5556
({ url }) =>
56-
["/admin/", "/users/"].some((path) => url.pathname.startsWith(path)),
57+
["/admin/", "/users/", "/authorizations", "/processes/pressupostos2024/f/6466/budgets"].some((path) => url.pathname.startsWith(path)),
5758
new NetworkOnly()
5859
);
5960

0 commit comments

Comments
 (0)