当前位置:网站首页>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
边栏推荐
- Analysis of fixed point PID code of FOC motor Library
- Overview of node file system and buffer
- Method of MySQL password expiration
- thinkphp5 ---- object(think\response\Json)转数组
- SiteServer CMS5.0使用总结
- 百度地图案例-缩放组件、地图比例组件
- .Net Core 下使用 Quartz —— 【2】作业和触发器之初步了解作业
- Leak detection and vacancy filling (V)
- FOC SVPWM function pwmc_ Setphasevoltage parsing
- 页面缓存问题解决方法(慎用)
猜你喜欢
随机推荐
出入库与库存系统的模型问题
js查找字符串中出现了三次的字符
.Net Core 下使用 Quartz —— 【2】作业和触发器之初步了解作业
千呼万唤始出来
如何使用input表单向服务发送(占用较小)图片文件(body传输)?涉及到FileReader内置对象
五个路由守卫的使用
Add serial number to El table
Mysql中的索引与视图
js中的作用域与作用域链
Unity3D对象池的理解与小例子
百度地图案例-缩放组件、地图比例组件
freeCodeCamp----shape_calculator练习
【无标题】js中的类型判断
百度地图3D旋转和倾斜角度的调整
Wildcards and special symbols for shell scripts
leetcode刷题之二进制求和
EF CORE在ASP.NET CORE项目中基于数据库优先模式生成实体模型
Router对象、Route对象、声明式导航、编程式导航
若依框架从零开始
1-2 JSX语法规则