@ -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: {