HTTP标头Pragma:Public是什么意思? [英] What does the HTTP header Pragma: Public mean?

查看:2760
本文介绍了HTTP标头Pragma:Public是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTTP标头Pragma:Public是什么意思?

What does the HTTP header Pragma: Public mean?

推荐答案

根据标准 Pragma 依赖于实现(第14.32节), no-cache 因为它的广泛使用。 缓存控制(第14.9节)是控制缓存的正确方法。这是标准所说的 Cache-Control:public

According to the standard, Pragma is implementation dependent (section 14.32), except for no-cache because of its wide use. Cache-Control (section 14.9) is the proper way to control caching. This is what the standard says for a Cache-Control: public:


表示响应可能是任何缓存缓存的
,即使它只是
通常是非缓存或可缓存的
仅在非共享缓存中。

Indicates that the response MAY be cached by any cache, even if it would normally be non-cacheable or cacheable only within a non- shared cache.

这篇关于HTTP标头Pragma:Public是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆