What does the HTTP header Pragma: Public mean?

HttpPragma

Http Problem Overview


What does the HTTP header Pragma: Public mean?

Http Solutions


Solution 1 - Http

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.

Solution 2 - Http

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

See https://stackoverflow.com/questions/3947643/details-on-google-app-engines-caching-proxy

Solution 3 - Http

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"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser185631View Question on Stackoverflow
Solution 1 - HttpGonzaloView Answer on Stackoverflow
Solution 2 - HttpAndy DennieView Answer on Stackoverflow
Solution 3 - HttphallsuchView Answer on Stackoverflow