This commit is contained in:
LiuChangFreeman 2024-11-20 16:21:59 +00:00 committed by GitHub
commit fe9f82b741
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 &&