Pragma: no-cache:跟Cache-Control: no-cache相同,
Pragma: no-cache兼容http 1.0 ,
Cache-Control: no-cache是http 1.1。
Pragma: no-cache可以应用到http 1.0 和http 1.1,而Cache-Control: no-cache只能应用于http 1.1.
注意如果只在页面上写< meta http-equiv = "Cache-Control" content = "max-age=7200" />
只针对当前的html,对里面的资源js images 或css 是不起效果的,所以需要后台处理
本文详细解读了HTTP缓存头Pragma:no-cache和Cache-Control:no-cache的区别,并指出仅在HTML页面中设置Cache-Control:no-cache不会影响内部资源的缓存策略。
1580

被折叠的 条评论
为什么被折叠?



