瀏覽代碼

清缓存

liting2017 7 年之前
父節點
當前提交
ce9b9e47a1
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/js/news/appCognizance.js

+ 6 - 0
src/js/news/appCognizance.js

@@ -1,6 +1,12 @@
 import '../../css/news/appCognizance.css';
 
 $(function(){
+	var metas='';
+	metas +='<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">'+
+       	'<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'+
+		'<meta http-equiv="Pragma" content="no-cache" />'+
+		'<meta http-equiv="Expires" content="0" />'	;
+		$('head').append(metas);
 	var colorArr=['#e22e2e','#2542ef','#10d4f1','#f9750b','#0bf964'];
 	//获取id
 	var https=window.location.href;