当前位置:网站首页>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");边栏推荐
- Complete Guide to IOT architecture
- 【数字识别】基于Hopfield神经网络识别0-9数字附Matlab代码
- 评价自动化测试优劣的隐性指标
- [noi2018] bubble sort (combination + Cartland number +dp+ tree array)
- 看GAN如何一步步控制图像生成风格?详解StyleGAN进化过程
- See how Gan controls the image generation style step by step? Explain the evolution process of stylegan in detail
- Deploy dolphin scheduler high availability cluster based on rainbow
- LANproxy mapping local development environment
- 8000字讲透OBSA原理与应用实践
- Bi Shi - University Logistics Management System Based on SSM
猜你喜欢

面试官:说一下网络数据传输的具体流程

Vulnhub range double trouble

Three consecutive high-frequency interview questions of redis online celebrity: cache penetration? Cache breakdown? Cache avalanche?

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

Microsoft Office 2019 download installation activation tutorial (full process diagram)

MySQL basic installation and startup

Pyqt5 rapid development and practice 4.10 window drawing controls

How to quickly view the API properties and usage of the h.265 video player easyplayer?

Process and planned task management

Network development socket and UDP, TCP protocols
随机推荐
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
iMeta | 国际标准刊号ISSN印刷版正式确认,双ISSN申请完成
2022/6/5 exam summary
如何快捷地查看H.265视频播放器EasyPlayer的API属性及其使用方法?
cron 表达式
C language explanation series -- understanding of functions (5) function recursion and iteration
Analysis of cloud native application security organization structure
Arm32 for remote debugging
Do you want to be dismissed? Let's take a look at the "exit tips" of programmers
Preliminary understanding of Panda3D audio and advanced interactive components
[idea] fluency optimization
Cloud native enthusiast weekly: a complete collection of client go examples
helm chart详解及常用命令:helm template / package / plugin
JVM composition and memory model
Solve the problem that the last bit of IP address access is odd and even, or even and odd (the problem encountered when the cloud encryption machine connects to the cloud server, the whole process is
Convnext:a convnet for the 2020s - model Brief
干货|语义网、Web3.0、Web3、元宇宙这些概念还傻傻分不清楚?(中)
Parameter transmission of components
【StoneDB故障诊断】数据库实例crash
Basic SQL general syntax and classification