What does the HTTP header Pragma: Public mean?

大兔子大兔子 提交于 2019-11-28 21:53:44

问题


What does the HTTP header Pragma: Public mean?


回答1:


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.




回答2:


Useful when you come across this error: http://trac.edgewall.org/ticket/1020. IE 8 & less seems to like to cache things when they are on a SSL server. Putting 'Pragma:public' helps with: "Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later"




回答3:


Also, "Pragma: Public" is used in Google App Engine applications to enable caching of responses within its Edge Cache.

See Details on Google App Engine's caching proxy?



来源:https://stackoverflow.com/questions/1920781/what-does-the-http-header-pragma-public-mean

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