" statement to disable caching of the page."> How to disable caching in html-Front-end Q&A-php.cn

How to disable caching in html

藏色散人
Release: 2023-01-03 09:31:33
Original
8439 people have browsed it

How to disable caching of html: First open the corresponding HTML file; then use the " " statement to disable caching of the page.

How to disable caching in html

The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer

HTML page caching is prohibited

Everyone may have encountered the problem of page caching. Many functions have no effect after completion, so how to solve this problem? Here is my solution

For an html page, caching Divided into 3 parts, one is page content, one is css style, one is JS file

1, page content

   
Copy after login

2, CSS and JS file

 
Copy after login

changed to

 
Copy after login

Just change the version number after each modification

In this way, you have to change it after every modification. Is there anything that automatically adds the version number? I guess there is, if it is JSP and php can be automatically generated through script

. If it is pure html, it can also be generated through document.write, or a dynamically loaded JS framework or something.

Recommended study: "HTML Video Tutorial"

The above is the detailed content of How to disable caching in html. 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
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!