cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Query regarding the caching problem faced with curl 7.19.3, how to disable cache usage ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 11 Jan 2012 13:56:28 +0100 (CET)

On Wed, 11 Jan 2012, Arif Ali Saiyed wrote:

> my problem is even after the file is being updated on web server, It's still
> downloading the cached copy of it.

This is not due to any caching done by curl though, as curl has no caching of
contents at all - ever.

> after some search I found that there is something called "Pragma:nochache"
> header, but I am not sure how to use this ? there is no curl_easy_setopt for
> doing this.

You insert that header into a request by yourself with CURLOPT_HTTPHEADER. See
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTHTTPHEADER

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-11