mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
Merge 1aa5a6ee21 into b485bf2979
This commit is contained in:
commit
fe9f82b741
|
|
@ -678,6 +678,19 @@ module.exports = function(webpackEnv) {
|
|||
new RegExp(/^\/f\//),
|
||||
new RegExp(/^\/custom/),
|
||||
],
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: new RegExp(/.*\/thumb\/.*/i),
|
||||
handler: 'StaleWhileRevalidate',
|
||||
options: {
|
||||
cacheName: 'thumbnail-cache',
|
||||
expiration: {
|
||||
maxEntries: 100,
|
||||
maxAgeSeconds: 30 * 24 * 60 * 60,
|
||||
},
|
||||
},
|
||||
}
|
||||
]
|
||||
}),
|
||||
// TypeScript type checking
|
||||
useTypeScript &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue