Skip to content

Commit

Permalink
Handles scenario where no cached response will be used.
Browse files Browse the repository at this point in the history
Fixes #1168
  • Loading branch information
Matt Gaunt committed Jan 10, 2018
1 parent c7c339d commit d163bc6
Show file tree
Hide file tree
Showing 4 changed files with 926 additions and 7 deletions.
8 changes: 5 additions & 3 deletions demos/functions/views/demo/workbox-sw/sw.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ workbox.routing.registerRoute(
/.*\.(?:png|jpg|jpeg|svg|gif)/g,
workbox.strategies.cacheFirst({
cacheName: 'image-cache',
cacheExpiration: {
maxEntries: 3,
},
plugins: [
new workbox.expiration.Plugin({
maxEntries: 3
})
]
})
);
Loading

0 comments on commit d163bc6

Please sign in to comment.