cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cache-Control: no-cache

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 16 Oct 2003 13:26:05 +0200 (CEST)

On Thu, 16 Oct 2003, Joerg Mueller-Tolk wrote:

> What header tag do I have to add to my request to tell the proxy to load
> a ressource from the URL and discard previous versions from the cache?
> I am not sure if I understand RFC2068 correctly. Is the following
> appropriate?
> Cache-Control: no-cache
> or rather
> Cache-Control: max-age=0
> or something completely different?

Both these header should make a HTTP 1.1-compliant proxy to load a fresh
document and not return a cached one.

Section 14.9 in RFC2616 (the successor of RFC2068) also states:

      Note that HTTP/1.0 caches might not implement Cache-Control and
      might only implement Pragma: no-cache (see section 14.32).

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
Received on 2003-10-16