What does the HTTP header Pragma: Public mean?
+3
A:
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.
Gonzalo
2009-12-17 10:46:34
Thanks but there are many instances of people coding so that a header is sent that contains only Pragma: Public. What does this mean to any major browser?
2009-12-18 11:14:03
The same that "Cache-Control: public", ie, that they MAY cache the information in that response.
Gonzalo
2009-12-18 17:36:36