Add exceptions to the serviceworker code to fix redirects (#7156)
* Add exceptions to the serviceworker code to fix redirects
This commit is contained in:
parent
2048bf00f7
commit
2f9d6eab48
1 changed files with 6 additions and 0 deletions
|
|
@ -122,6 +122,12 @@
|
|||
!url.href.includes('/search/classified_listings') &&
|
||||
!url.href.includes('/search/users') &&
|
||||
|
||||
// Don't run on redirects
|
||||
!url.href.includes('/workshops') &&
|
||||
!url.href.includes('/%F0%9F%92%B8') && // 💸 (hiring)
|
||||
!url.href.includes('/podcasts') &&
|
||||
!url.href.includes('/p/rlyweb') &&
|
||||
|
||||
caches.match('/shell_top') && // Ensure shell_top is in the cache.
|
||||
caches.match('/shell_bottom')) { // Ensure shell_bottom is in the cache.
|
||||
event.respondWith(createPageStream(event.request)); // Respond with the stream
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue