Skip to content

Commit

Permalink
Runtime caching
Browse files Browse the repository at this point in the history
  • Loading branch information
benfoxall committed May 15, 2024
1 parent d502546 commit d394f1f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions workbox-config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ module.exports = {
'**/node_modules/**',
'**/slides/**'
],
runtimeCaching: [{
urlPattern: /^https:\/\/cdn\.skypack\.dev\//,
handler: 'StaleWhileRevalidate'
},
{
urlPattern: /^https:\/\/unpkg\.com\//,
handler: 'StaleWhileRevalidate'
}]
runtimeCaching: [
{
urlPattern: /^https:\/\/cdn\.skypack\.dev\//,
handler: 'StaleWhileRevalidate'
},
{
urlPattern: /^https:\/\/unpkg\.com\//,
handler: 'StaleWhileRevalidate'
},
{
urlPattern: /^https:\/\/cdn\.jsdelivr\.net\//,
handler: 'StaleWhileRevalidate'
}
]

};

0 comments on commit d394f1f

Please sign in to comment.