How to disable caching in html5

青灯夜游
Release: 2023-01-06 11:13:30
Original
3987 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:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!