selvatico patrice wrote:
> 985961658.367 4789 127.0.0.1 TCP_MISS/200 99293 GET
> http://127.0.0.1:81/uniface/urd/run/component.index?CAT
> ID=VN - DIRECT/127.0.0.1 text/html [
If-Modified-Since: Fri, 30 Mar 2001 10:00:00 GMT; length=98921
Referer: http://127.0.0.1/journal/urd/run/component.index?CATID=RT
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
image/png, */*
User-Agent: Mozilla/4.75 %5ben%5d (WinNT; U)
Host: 127.0.0.1
Accept-Encoding: gzip
Accept-Language: fr,en
Accept-Charset: iso-8859-1,*,utf-8
] [
HTTP/1.1 200 OK
Date: Fri, 30 Mar 2001 14:14:13 GMT
Server: Apache/1.3.19 (Unix) ApacheJServ/1.1.2
Cache-Control: no-cache
Expires: 0
Cache-Control: public, max-age=600
Last-Modified: Thu, 30 Mar 2001 10:00:00 GMT
Expires: Thu, 31 Mar 2001 10:00:00 GMT
Content-Length: 98921
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
]
> It seems that I have 2 Cache-Control in my header:
And a bad Expires: header.
> I use mod_header in apache :
>
> Header unset Cache-Control
> Header set Cache-Control "public, max-age=600"
> Header set Last-Modified "Thu, 30 Mar 2001 10:00:00 GMT"
>
>
> I tried only to put only that
> Header unset Cache-Control
>
> But I still have the Cache-Control: no-cache in the header .
The "Cache-Control: no-cache", and "Expires: 0" headers are most likely
added by the uniface software to prevent caching of returned pages.
Without getting rid of these it will be very hard to get Squid to cache
the result...
How do uniface plug into Apache? As a Apache module, JServ or as a CGI
program?
Note: The question on how to get uniface to output cache friendly
documents belongs more on a uniface or mailing list than here..
If all else fails, you might be able to recode Squid to ignore those
headers, but it is very much preferred if the problem can be addressed
at the origin server. (often when such hacks are added to Squid people
think they are smart and starts abuse them to improve the hit ratio in
proxies, often without understanding what they are doing, then
complaining when things break in bad ways for the users)
-- Henrik Nordstrom Squid hackerReceived on Fri Mar 30 2001 - 07:52:19 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:03 MST