当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
WebAPI+Form表单上传文件
PHP 无限极分类和树形
Leak detection and vacancy filling (IV)
小程序学习笔记(一)
柯里化实现函数连续调用计算累加和
.Net Core 下使用 Quartz —— 【2】作业和触发器之初步了解作业
.NET跨平台原理(上篇)
oninput 一个函数达到控制多个oninput的效果(将本输入框的内容作为参数)【很实用,很实用】
TypeScript(上)
【批量更改mysql表以及表中字段对应的编码】
js更改全部变量失败后改成return方法,终于解决解决问题
常用sql语句收藏
出入库与库存系统的模型问题
js中的作用域与作用域链
TypeScript(下)
Analysis of fixed point PID code of FOC motor Library
sqlserver性能优化建议
Use of C language and
leetcode刷题之x的算术平方根
Offset et client pour obtenir des informations sur l'emplacement des éléments Dom