Article View: borland.public.cppbuilder.internet.socket
Article #2165Re: Strange behaviour of Indy http
From: David Ayre
Date: Thu, 03 Aug 2006 18:53
Date: Thu, 03 Aug 2006 18:53
38 lines
2416 bytes
2416 bytes
"David Ayre" <davidcayre@ntlworld.com> wrote: > >Bob Gonder <notbg@notmindspring.invalid> wrote: >>David Ayre wrote: >> >>>I deleted the old file before uploading the new one. >> >>Ok, but did you also delete the old file before downloading the new >>one with TIdHTTP? >> >If you mean 'did I delete the old file from my computer before >downloading the new one', the answer is yes. I do that in the >application. Delete old file and then download new one, except >that it is always the old one that appears. >If I download the file using ftp, I get the new one. >I have also tried Remy's suggestion of setting >Request->Pragma = "no-cache"; >But still it brings down the old file. I have asked the web host >about this but am still waiting for a reply. > >Cheers, > >David > I have since checked with the website host and there is no caching on the webserver. However, they suggest that the ISP might be caching files. If this is the case, it would seem that the Request->Pragma = "no-cache" doesn't work in this situation. I have also found that after a day, the new file is downloaded so the cache must be purged after a day. I suppose I can live with this, but it would be nice to be in control of the situation. Cheers, David
Technical Details
Message-ID:
<44d24646$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<44cf3257$1@newsgroups.borland.com> <k8muc2951g8nf8tj5nrcvj4mp5lgaem41i@4ax.com> <44cf61e0$1@newsgroups.borland.com> <98q1d2lpchrqvqg7as6t39no0m0vsc580r@4ax.com> <44d1b07e@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> <98q1d2lpchrqvqg7as6t39no0m0vsc580r@4ax.com> <44d1b07e@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <44d24646$1@newsgroups.borland.com> Date: 3 Aug 2006 11:53:58 -0700 X-Trace: newsgroups.borland.com 1154631238 207.105.83.66 (3 Aug 2006 11:53:58 -0700) Lines: 39 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail