Re: [squid-users] no-cache and origin servers

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 15 Jul 2011 00:04:18 +1200

On 14/07/11 22:21, Mohsen Pahlevanzadeh wrote:
> Dear all,
>
> Suppose i have an origin server and squid, my origin server fill cache
> header and send squid-box, now if put no-cache squid does cache my page?

Yes the page may be stored. no-cache from the origin is the same meaning
as must-revalidate (ie must check for updates before re-using).
  The proper use of no-cache is to set a list of headers that are to be
removed when storing the object.

Example:
  HTTP/1.1 200 OK
  Date: ...
  Cache-Control: no-cache="Foo"
  Set-Cookie: ...
  Foo: ...

stored object:
  HTTP/1.1 200 OK
  Date: ...
  Cache-Control: no-cache="Set-Cookie"
  Set-Cookie: ...

> It's very important that squid doesn't response.How do i implement it?

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2

To prevent storing the object origin sends:
  Cache-Control: no-store

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.14
   Beta testers wanted for 3.2.0.9
Received on Thu Jul 14 2011 - 12:04:25 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 14 2011 - 12:00:02 MDT