Add oauth to list of skipped paths for service workers (#5441)

* Add oauth to list of skipped paths for service workers

* Fix comment
This commit is contained in:
Ben Halpern 2020-01-10 13:41:10 -05:00 committed by GitHub
parent f78b89e763
commit 150e31bbf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,6 +103,7 @@
!url.href.includes('?preview=') && // Skip for /future.
!url.href.includes('/delayed_job') && // Skip for Delayed Job dashboard
!url.href.includes('/sidekiq') && // Skip for Sidekiq dashboard
!url.href.includes('/oauth/') && // Skip oauth apps
!url.href.includes('/rails/mailers') && // Skip for mailers previews in development mode
caches.match('/shell_top') && // Ensure shell_top is in the cache.
caches.match('/shell_bottom')) { // Ensure shell_bottom is in the cache.