chore: 修改打包缓存机制,防止fallback的文件被缓存

pull/13/head
moonrailgun 4 years ago
parent 9613df6fe4
commit ef38ea4324

@ -179,6 +179,12 @@ const config: Configuration = {
expiration: {
maxAgeSeconds: 1 * 60 * 60, // 1h
},
cacheableResponse: {
// 只缓存js, 防止404后台直接fallback到html
headers: {
'content-type': 'application/javascript; charset=utf-8',
},
},
},
},
],

Loading…
Cancel
Save