Remove /new from serviceworkers (#7967)
* Remove /new from serviceworkers * Use pathname
This commit is contained in:
parent
c02a103c7f
commit
59765d339f
1 changed files with 2 additions and 0 deletions
|
|
@ -95,6 +95,8 @@
|
|||
event.request.method == "GET" && // Don't fetch on POST, DELETE, etc.
|
||||
!event.request.referrer.includes('/signout_confirm') && // If this is the referrer, we instead want to flush.
|
||||
|
||||
url.pathname !== '/new' && // We have no shell for /new
|
||||
|
||||
!url.href.includes('i=i') && // Parameter representing "internal" navigation.
|
||||
!url.href.includes('.css') && // Don't run on CSS.
|
||||
!url.href.includes('.js') && // Don't run on JS.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue