|
|
@ -56,13 +56,41 @@ const manifestForPWAPlugIn = {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
urlPattern: /^https:\/\/oss-accelerate\.aliyuncs\.com\/.*/i,
|
|
|
|
|
|
|
|
handler: 'CacheFirst',
|
|
|
|
|
|
|
|
options: {
|
|
|
|
|
|
|
|
cacheName: 'oss-ap-acc-media',
|
|
|
|
|
|
|
|
expiration: {
|
|
|
|
|
|
|
|
maxEntries: 50,
|
|
|
|
|
|
|
|
maxAgeSeconds: 60 * 60 * 24 * 7, // <== 7 days
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cacheableResponse: {
|
|
|
|
|
|
|
|
statuses: [0, 200],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
urlPattern: /^https:\/\/page-spy\.mycht\.cn\/.*/i,
|
|
|
|
|
|
|
|
handler: 'CacheFirst',
|
|
|
|
|
|
|
|
options: {
|
|
|
|
|
|
|
|
cacheName: 'pagespy',
|
|
|
|
|
|
|
|
expiration: {
|
|
|
|
|
|
|
|
maxEntries: 10,
|
|
|
|
|
|
|
|
maxAgeSeconds: 60 * 60 * 24 * 7, // <== 7 days
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cacheableResponse: {
|
|
|
|
|
|
|
|
statuses: [0, 200],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
urlPattern: /^https:\/\/static-legacy\.dingtalk.com\/.*/i,
|
|
|
|
urlPattern: /^https:\/\/static-legacy\.dingtalk.com\/.*/i,
|
|
|
|
handler: 'CacheFirst',
|
|
|
|
handler: 'CacheFirst',
|
|
|
|
options: {
|
|
|
|
options: {
|
|
|
|
cacheName: 'dingtalk-avatar-media',
|
|
|
|
cacheName: 'dingtalk-avatar-media',
|
|
|
|
expiration: {
|
|
|
|
expiration: {
|
|
|
|
maxEntries: 50,
|
|
|
|
maxEntries: 10,
|
|
|
|
maxAgeSeconds: 60 * 60 * 24 * 7, // <== 7 days
|
|
|
|
maxAgeSeconds: 60 * 60 * 24 * 7, // <== 7 days
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cacheableResponse: {
|
|
|
|
cacheableResponse: {
|
|
|
|