Home > Article > Web Front-end > How to clear css cache
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.
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!