فهرست منبع

html禁止缓存

xjj 1 سال پیش
والد
کامیت
b58454c5c8
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      .umirc.ts

+ 7 - 0
.umirc.ts

@@ -14,6 +14,13 @@ export default defineConfig({
   },
   title: '金科环境数字化管理平台',
   publicPath: process.env.NODE_ENV == 'development' ? '/' : '/gt-dig/',
+  metas: [
+    // 配置html禁止缓存
+    { 'http-equiv': 'pragma', content: 'no-cache' },
+    { 'http-equiv': 'cache-control', content: 'no-cache' },
+    { 'http-equiv': 'expires', content: '0' },
+    { 'http-equiv': 'X-UA-Compatible', content: 'IE=EmulateIE9' },
+  ],
   proxy: {
     '/api': {
       // target: 'http://47.96.12.136:8888/',