mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-15 00:01:31 +01:00
update lint
This commit is contained in:
parent
52d6a73f73
commit
92463f182e
@ -194,27 +194,27 @@ module.exports = {
|
|||||||
options: {
|
options: {
|
||||||
workboxConfig: {
|
workboxConfig: {
|
||||||
runtimeCaching: [{
|
runtimeCaching: [{
|
||||||
// Use cacheFirst since these don't need to be revalidated (same RegExp
|
// Use cacheFirst since these don't need to be revalidated (same RegExp
|
||||||
// and same reason as above)
|
// and same reason as above)
|
||||||
urlPattern: /(\.js$|\.css$|[^:]static\/)/,
|
urlPattern: /(\.js$|\.css$|[^:]static\/)/,
|
||||||
handler: `CacheFirst`,
|
handler: 'CacheFirst',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// page-data.json files, static query results and app-data.json
|
// page-data.json files, static query results and app-data.json
|
||||||
// are not content hashed
|
// are not content hashed
|
||||||
urlPattern: /^https?:.*\/page-data\/.*\.json/,
|
urlPattern: /^https?:.*\/page-data\/.*\.json/,
|
||||||
handler: `StaleWhileRevalidate`,
|
handler: 'StaleWhileRevalidate',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Add runtime caching of various other page resources
|
// Add runtime caching of various other page resources
|
||||||
urlPattern: /^https?:.*\.(png|jpg|jpeg|webp|svg|gif|tiff|js|woff|woff2|json|css)$/,
|
urlPattern: /^https?:.*\.(png|jpg|jpeg|webp|svg|gif|tiff|js|woff|woff2|json|css)$/,
|
||||||
handler: `StaleWhileRevalidate`,
|
handler: 'StaleWhileRevalidate',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Google Fonts CSS (doesn't end in .css so we need to specify it)
|
// Google Fonts CSS (doesn't end in .css so we need to specify it)
|
||||||
urlPattern: /^https?:\/\/fonts\.googleapis\.com\/css/,
|
urlPattern: /^https?:\/\/fonts\.googleapis\.com\/css/,
|
||||||
handler: `StaleWhileRevalidate`,
|
handler: 'StaleWhileRevalidate',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user