conf: 增加缓存: 附件, 优化图片加载

dev/ckeditor
Lei OT 2 weeks ago
parent afeef17e28
commit b1db77bbe9

@ -99,6 +99,20 @@ const manifestForPWAPlugIn = {
},
},
},
{
urlPattern: /^https:\/\/.*\.mycht\.cn\/attachment\/.*/i,
handler: 'CacheFirst',
options: {
cacheName: 'mail-attachment',
expiration: {
maxEntries: 10,
maxAgeSeconds: 60 * 60 * 24 * 7, // <== 7 days
},
cacheableResponse: {
statuses: [0, 200],
},
},
},
],
},
manifest: {

Loading…
Cancel
Save