HTML Cache control

别说谁变了你拦得住时间么 提交于 2019-12-17 15:44:55

问题


What is the difference between below 3 meta tags?

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="-1">

Do I need to use all those tags to avoid browser caching?


回答1:


See the Caching Tutorial for Web Authors and Webmasters which explains about all the different cache control headers (especially the part the explains that those meta tags are largely useless and real HTTP headers are the way forwards).



来源:https://stackoverflow.com/questions/3099526/html-cache-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!