Home > Web Front-end > CSS Tutorial > How to clear css cache

How to clear css cache

醉折花枝作酒筹
Release: 2023-01-05 16:14:18
Original
4184 people have browsed it

In css, you can use the content attribute to clear the css cache. Just add "CONTENT="no-cache/0"" to the meta tag. The content attribute can set or return the content attribute value of the meta element. This attribute specifies the content of meta information.

How to clear css cache

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

Add the non-caching flag in the page (HTML page ):

<META HTTP-EQUIV="pragma" CONTENT="no-cache">
 < META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
 < META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
Copy after login

or

<META HTTP-EQUIV="expires" CONTENT="0">
Copy after login

Related learning recommendations: css tutorial

The above is the detailed content of How to clear css cache. 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