]> git.ipfire.org Git - thirdparty/squid.git/commit
HTTP/1.1: honour Cache-Control before Pragma:no-cache
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 16 Oct 2012 01:38:43 +0000 (19:38 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 16 Oct 2012 01:38:43 +0000 (19:38 -0600)
commitcdf55306f9973fb689d8e407f7349c3938d56d92
tree771cdb04fbb6c02e16b27a7298350c7702918811
parent3a8c55517a7207c87a094942d9aa389d7f0a9b89
HTTP/1.1: honour Cache-Control before Pragma:no-cache

HTTPbis WG clarifications on the interaction between Cache-Control and
Pragma specify that Cache-Control may be explicitly crafted to allow
conditional caching by HTTP/1.1 caches and Pragma:no-cache supplied to
prevent caching by older HTTP/1.0 caches unable to understand the
Cache-Control properly.

Squid does obey Cache-Control. So we can deprecate Pragma to the side
cases when Cache-Control is absent entirely.
src/client_side_request.cc