cURL / Mailing Lists / curl-library / Single Mail


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

From: Daniel Stenberg <>
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

List admin:
Received on 2012-01-11