cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Pragma: no-cache

From: Torsten Foertsch <torsten.foertsch_at_gmx.net>
Date: Wed, 16 Feb 2005 15:04:58 +0100

On Wednesday 16 February 2005 14:06, Daniel Stenberg wrote:
> Any opinions on the suggestion posted by Enrico Scholz in the
> feedback forum?
>
> curl should not set the 'Pragma: no-cache' header by default. There
> are only a few cases where it is really needed, but most time, it is
> better to reuse the cached results.
>
> Therefore, please disable it and add a cli option (e.g. like wget's
> '-C') which forces a reload of the data.
>
> http://curl.haxx.se/feedback/display.cgi?id=11084826791376&support=ye
>s

I am against it.

1) it breaks compatibility with older versions in a quite unnoticable
way.

2) I like curl as a handy tool for debugging and testing. In most cases
the no-cache pragma by default is rather useful for me or does not
matter.

3) "curl -H Pragma:" is less typing then "curl -H 'Pragma: no-cache'" in
the rare cases when it is needed.

Torsten

  • application/pgp-signature attachment: stored
Received on 2005-02-16