🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2157

Re: Strange behaviour of Indy http

#2157
From: David Ayre
Date: Wed, 02 Aug 2006 08:19
23 lines
1833 bytes

>TIdHTTP does not perform any kind of caching at all.  It retrieves whatever
>the server provides.  If you are receiving an old file, then the server
>itself (or a proxy in between) is performing caching on its end.  There is
>nothing TIdHTTP can do to prevent that.  What it can do, however, is request
>a non-cached version of the file, by setting the Request->Pragma property to
>"no-cache" before calling Get().
>
>Gambit
>
Thanks Remy, but I have tried that and I still get the old
version of the file. I inserted this line before the Get():-

IdHTTP1->Request->Pragma = "no-cache";

I also tried inserting "no-cache" into the Request->Pragma slot
in the object inspector for IdHTTP1 but all to no avail.
I assume from this that I'll have to have a word with the website
host.
Thanks anyway,

David
Technical Details
Message-ID: <44d05ff8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44cf3257$1@newsgroups.borland.com> <k8muc2951g8nf8tj5nrcvj4mp5lgaem41i@4ax.com> <44cf61e0$1@newsgroups.borland.com> <44cfb93d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e7d8ed3b45068807
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "David Ayre" <davidcayre@ntlworld.com>
Sender: "David Ayre" <davidcayre@ntlworld.com>
Reply-To: "David Ayre" <davidcayre@ntlworld.com>
Subject: Re: Strange behaviour of Indy http
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 62.252.224.18     
X-Forwarded-For: 81.96.132.239
References: <44cf3257$1@newsgroups.borland.com> <k8muc2951g8nf8tj5nrcvj4mp5lgaem41i@4ax.com> <44cf61e0$1@newsgroups.borland.com> <44cfb93d$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44d05ff8$1@newsgroups.borland.com>
Date: 2 Aug 2006 01:19:04 -0700
X-Trace: newsgroups.borland.com 1154506744 207.105.83.66 (2 Aug 2006 01:19:04 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail