Add /embed to list of disallowed path matches (#6019) [deploy]

In service workers, we should not be adding the shell to these views.
This commit is contained in:
Ben Halpern 2020-02-11 10:24:33 -05:00 committed by GitHub
parent 4fe4c4d791
commit 30e2fd5017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,6 +97,7 @@
!url.href.includes('/api/') && // Don't run on API endpoints.
!url.href.includes('/users/auth') && // Don't run on authentication.
!url.href.includes('/shell_') && // Don't fetch for shell.
!url.href.includes('/embed/') && // Don't fetch for embeded content.
!url.href.includes('/admin') && // Don't fetch for administrate dashboard.
!url.href.includes('/internal') && // Don't fetch for internal dashboard.
!url.href.includes('/future') && // Skip for /future.