cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Important info about caching

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 9 Feb 2004 14:52:07 +0100 (CET)

On Fri, 6 Feb 2004, codemastr wrote:

> > This particular case could in fact also be solved by adding another
> > variable readable with curl_easy_getinfo(). Perhaps that is the cleanest
> > solution.
>
> Yeah that might work. something along the lines of:
> curl_easy_getinfo(curl, CURL_INFO_TIMECONDITION, &bool);
> if (bool == 1)
> /* The time condition was met and therefore the file was downloaded */
> else
> /* The time condition was not met and therefore the cached version should be
> used */
>
> Again, if you think that's a good solution I'd be glad to work on it.

I would indeed accept this functionality, please provide a patch!

> Regardless though I've attached a minor patch to update the docs.

Thanks!

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-09