Home  >  Article  >  Web Front-end  >  How to clear css cache

How to clear css cache

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-05-10 17:37:484054browse

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 93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1):

<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">

or

<META HTTP-EQUIV="expires" CONTENT="0">

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!

Statement:
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