缓存问题

This commit is contained in:
zyn
2023-07-17 15:01:31 +08:00
parent 6658bd4b23
commit f6d4da469a
2 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -5,9 +5,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="0">
<meta http-equiv="pragram" content="no-cache">
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Expires" content="0">
<title>标准法规管理系统</title>
<script src="static/polyfill/proxy.min.js"></script>
<style>
+4 -4
View File
@@ -53,11 +53,11 @@ module.exports = {
.set('process', resolve('./src/pages/processCenter/pages'))
if (process.env.NODE_ENV === 'production') {
// 给js和css配置版本号
config.output.filename('js/[name].' + Timestamp + '.js').end();
config.output.chunkFilename('js/[name].' + Timestamp + '.js').end();
config.output.filename('js/[name].' + Timestamp + '.js?v=' + Timestamp).end();
config.output.chunkFilename('js/[name].' + Timestamp + '.js?v=' + Timestamp).end();
config.plugin('extract-css').tap(args => [{
filename: `css/[name].${Timestamp}.css`,
chunkFilename: `css/[name].${Timestamp}.css`
filename: `css/[name].${Timestamp}.css?v=` + Timestamp,
chunkFilename: `css/[name].${Timestamp}.css?v=` + Timestamp
}])
config.optimization