🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #88449

Re: [Xnews] test version 4.11.28

#88449
From: JanC
Date: Fri, 30 Nov 2001 04:30
61 lines
3310 bytes
Luu Tran wrote:

> JanC <janc_removethis@digibel.org> wrote in
> news:Xns9168ECED5E37BJanC@195.130.132.65... 
> 
>> "Pragma: no-cache" is an old work-around for HTTP/1.0 caches
>> (HTTP/1.0 has no support for caching), HTTP/1.1 proxies should
>> understand the real caching header "Cache-Control: ", which has
>> more options than just "no-cache" (see RFC 2616).
>> 
>> If Luu can change .htaccess files on the webserver, he could add
>> "no-cache" http-headers for the files in /release/ and /test/.
>> 
> 
> Good idea.  Do you by any chance know the exact syntax for this? 

In the .htaccess file, in the directory where you want to add the 
header to HTTP-responses, you have to put the following line:

  Header set Pragma "no-cache"

The admin can put this same line in <directory>, <location> or <files> 
sections in access.conf (or httpd.conf if only 1 config file is used) 
if he/she doesn't want you to use .htaccess

The mod_headers module must be installed too (that's the default, I 
think).


Maybe you can also add the following line...

  Header set Cache-Control "no-cache"

... but I think (almost) every HTTP/1.1 cache understands the old 
Pragma-header.  Also: HTTP/1.1 has more options than just "no-cache", 
you (or the admin) can find them here:
<http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9>


More info about Apache's mod_headers is here:
<http://httpd.apache.org/docs/mod/mod_headers.html>


> I'm too lazy to go look it up.

Isn't being lazy a quality of "real programmers"?  ;-)


> (This of course assumes the admin allows me to override the
> setting.) 

If he doesn't allow you, you could give every test release another 
filename (e.g. test-41129.zip).  That way proxies won't be able to 
cache the file...

-- 
JanC

"Behold, I send thee forth as newbies in the midst of wolves,
so RTFM! (read the fine manual)"  --Xnews manual
Technical Details
Message-ID: <Xns916938047A3C7JanC@195.130.132.65>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
References: <Xns9167E65BCECE1imamidnighttoken@The.Hot.Dogg.House> <u0bfrt81v8biee@corp.supernews.com> <Xns9167EBE4F6AAimamidnighttoken@The.Hot.Dogg.House> <Xns9168AD273EB9Bpooobahh5386@127.0.0.1> <Xns91681076F679Dimamidnighttoken@The.Hot.Dogg.House> <Xns9168BEDFE80FApooobahh5386@127.0.0.1> <Xns9168ECED5E37BJanC@195.130.132.65> <Xns9168AB0FCBB88luutrangeocities@63.169.72.7>

Show Full Headers
Complete Article Headers
Message-ID: <Xns916938047A3C7JanC@195.130.132.65>
Subject: Re: [Xnews] test version 4.11.28
Date: Fri, 30 Nov 2001 04:30:24 GMT
From: JanC <janc_removethis@digibel.org>
References: <Xns9167E65BCECE1imamidnighttoken@The.Hot.Dogg.House> <u0bfrt81v8biee@corp.supernews.com> <Xns9167EBE4F6AAimamidnighttoken@The.Hot.Dogg.House> <Xns9168AD273EB9Bpooobahh5386@127.0.0.1> <Xns91681076F679Dimamidnighttoken@The.Hot.Dogg.House> <Xns9168BEDFE80FApooobahh5386@127.0.0.1> <Xns9168ECED5E37BJanC@195.130.132.65> <Xns9168AB0FCBB88luutrangeocities@63.169.72.7>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: JanC
User-Agent: Xnews/4.11.29
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 60
NNTP-Posting-Host: 213.118.38.165
X-Complaints-To: abuse@pandora.be
X-Trace: afrodite.telenet-ops.be 1007094624 213.118.38.165 (Fri, 30 Nov 2001 05:30:24 MET)
NNTP-Posting-Date: Fri, 30 Nov 2001 05:30:24 MET