change caching rules
This commit is contained in:
parent
6d0b5b8d8a
commit
b15e79986f
|
@ -18,10 +18,16 @@ module.exports = {
|
|||
stripPrefix: '/home/anzz/code/kanaquiz/',
|
||||
maximumFileSizeToCacheInBytes: 4194304,
|
||||
minify: true,
|
||||
runtimeCaching: [{
|
||||
handler: 'networkFirst',
|
||||
urlPattern: /\.(woff2|svg|ttf|eot|woff|html)$/,
|
||||
}],
|
||||
runtimeCaching: [
|
||||
{
|
||||
handler: 'fastest',
|
||||
urlPattern: /\.(woff2|svg|ttf|eot|woff)$/,
|
||||
},
|
||||
{
|
||||
handler: 'networkFirst',
|
||||
urlPattern: /\.html$/
|
||||
}
|
||||
],
|
||||
})
|
||||
],
|
||||
module: {
|
||||
|
|
Loading…
Reference in a new issue