当前位置:网站首页>Solution to page cache problem (use with caution)
Solution to page cache problem (use with caution)
2022-04-23 06:52:00 【Collect and study by yourself】
solve ios And Android phone cache problems
Divided into three parts :HTML file ,CSS file 、JS file
HTML part :
Add the following code , Force not to cache , But every time you ask for new data , The request is slow and resource consuming
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache" content="no-cache">
CSS file :
Add the version number , updated , Use the date of the day . If there are two updates on the same day , Add the serial number after , from 1 Start .
for example :
<link rel="stylesheet" type="text/css" href="__CSS__/qianduan/material-view.css?t=202106221" />
-------------------------------------------------------------------------------------?t=202006222/>
JS file
ditto CSS Processing mode .
for example :
<script type="text/javascript" src="__JS__/qianduan/index.js?t=202106221"></script>
版权声明
本文为[Collect and study by yourself]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230555552216.html
边栏推荐
猜你喜欢
随机推荐
mysql中sum (if)_mysql 中sum (if())
JS实现模态框拖拽
NodeJS 模块之间的使用
SiteServer CMS5.0使用总结
Unity3D对象池的理解与小例子
China creates vast research infrastructure to support ambitious climate goals
Promise(二)
1-3 NodeJS的安装之清单配置与跑项目环境
file_ get_ Two solutions to content accessing SSL errors
【ORACLE与mysql的区别】
JS正则匹配先行断言和后行断言
出入库与库存系统的模型问题
Offset et client pour obtenir des informations sur l'emplacement des éléments Dom
并发优化请求
el-date-picker限制选择范围,从当前时间到两个月前
freeCodeCamp----arithmetic_arranger练习
leetcode刷题之整数加一
.Net Core 下使用 Quartz —— 【7】作业和触发器之简单触发器
数据可视化进一步学习
C# webpai 路由详解









