当前位置:网站首页>Disable caching with meta HTML tags in all browsers
Disable caching with meta HTML tags in all browsers
2022-07-27 23:25:00 【allway2】
To disable caching in all browsers , Please use the following code :
Meta Mark (HTML)
Add this code to the <head> part , For example, in <title> After marking .
<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" />.htaccess ( Apache )
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>PHP
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');Ruby on Rails
response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
response.headers['Pragma'] = 'no-cache'
response.headers['Expires'] = '0'Python Flask
resp.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
resp.headers["Pragma"] = "no-cache"
resp.headers["Expires"] = "0"Go
responseWriter.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
responseWriter.Header().Set("Pragma", "no-cache")
responseWriter.Header().Set("Expires", "0")ASP
Response.addHeader "Cache-Control", "no-cache, no-store, must-revalidate"
Response.addHeader "Pragma", "no-cache"
Response.addHeader "Expires", "0"ASP.NET
Response.AppendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
Response.AppendHeader("Pragma", "no-cache");
Response.AppendHeader("Expires", "0");边栏推荐
- Security-001
- 【信号处理】基于高阶统计量特征的通信系统中微弱信号检测附matlab代码
- Cy3 fluorescent labeling antibody / protein Kit (10~100mg labeling amount)
- What is the b+tree index of MySQL? How does the cluster index grow?
- 如何快捷地查看H.265视频播放器EasyPlayer的API属性及其使用方法?
- The principle and demonstration of service path lifting without quotation marks
- Dry goods semantic web, Web3.0, Web3, metauniverse, these concepts are still confused? (medium)
- Arm32 for remote debugging
- Gstore weekly gstore source code analysis (V): log tracking of security mechanism
- Px4 module design part 13: workqueue design
猜你喜欢

Cron expression

Interviewer: I can't carry a backpack at all. Are you going by yourself or I'll give you a lift?
![[C language] simulate and implement string functions (Part 1)](/img/13/afb015de3448e20a0b7b09c1aca4ad.png)
[C language] simulate and implement string functions (Part 1)
Blood spitting finishing nanny level series tutorial - playing Fiddler bag capturing tutorial (5) - detailed explanation of fiddler monitoring panel

简单实用的数据可视化案例

Introduction to the paper | language model for long text under transformer architecture

Library management system based on SSM framework

机器学习项目可视化展示方法

Read an article to understand artificial neural network

Main security risks and Countermeasures of cloud computing services
随机推荐
CSDN dedicated killer technology -- Google browser plug-in
网络开发套接字以及UDP、TCP协议
Simple and practical data visualization cases
2022 review plan of joint provincial election
Exercise --- BFS
【 图像去雾】基于暗通道和非均值滤波实现图像去雾附matlab代码
简单实用的数据可视化案例
The wechat installation package has expanded 575 times in 11 years, and the up owner: "98% of the documents are garbage"; Apple App store was exposed to a large number of pornographic apps; Four techn
记录一下使用R语言中关于formatC的错误
如何快捷地查看H.265视频播放器EasyPlayer的API属性及其使用方法?
Promise solves asynchrony
Basic SQL general syntax and classification
【GNN报告】加拿大蒙特利尔唐建:Geometric Deep Learning For Drug Discovery
面试官:说一下网络数据传输的具体流程
Bubbling, fast sorting, heap sorting and cardinality sorting of the eight sorts
Jupyter notebook solves the problem that printing information cannot be viewed after closing the browser
On data management of data warehouse
Tips and extensions of graph theory
How do I shut down oracle?
Visual display method of machine learning project