Home > Web Front-end > Front-end Q&A > How to disable caching in html5

How to disable caching in html5

青灯夜游
Release: 2023-01-06 11:13:30
Original
4240 people have browsed it

You can use the meta tag to disable caching in html5. You only need to set the values ​​of the "HTTP-EQUIV" attribute to "pragma", "Cache-Control" and "expires" in the tag, which correspond to The values ​​of the CONTENT attribute are "no-cache" and "0".

How to disable caching in html5

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

html5:

<HEAD> 
<meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-store"> 
<meta HTTP-EQUIV="expires" CONTENT="0">
</HEAD>
Copy after login

chrome:

Now the new version of Chrome is in the Settings of developer Tools (F12 brings it up) ( There is a Disable cache option in the lower right corner (there is a gear logo). Just tick it.

Recommended tutorial: "html video tutorial"

The above is the detailed content of How to disable caching in html5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
html5 validation for symfony 2.1
From 1970-01-01 08:00:00
0
0
0
The difference between HTML and HTML5
From 1970-01-01 08:00:00
0
0
0
html5 show hide
From 1970-01-01 08:00:00
0
0
0
Can PDF files run HTML5 and Javascript?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template