Skip to content

Commit

Permalink
Don't use the service worker for the feed (#5734)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhymes authored and benhalpern committed Jan 27, 2020
1 parent a86ccff commit e582e2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/service_worker/index.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@
!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.
!url.href.includes('?preview=') && // Skip for /future.
!url.href.includes('?preview=') && // Skip for preview pages.
!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('/robots.txt') && // Skip oauth apps
!url.href.includes('/robots.txt') && // Skip robots for web crawlers
!url.href.includes('/rails/mailers') && // Skip for mailers previews in development mode
!url.href.includes('/feed') && // Skip the RSS feed
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
Expand Down

0 comments on commit e582e2a

Please sign in to comment.