Henrik Nordstrom wrote:
> On Wed, 20 Oct 2004, Jim Nachlin wrote:
>
>> If I tail the /tmp/testSquidRefresh.out, I can see that every time the
>> page is refreshed, the cgi is executing. The squid access.log says:
>> TCP_REFRESH_HIT/304, which doesn't do what I want, because it has to
>> execute the script to get the header.
>
>
> How are you refreshing the page?
Either by clicking a link or CTRL-R. I am not sending the Pragma
no-cache or the Cache-Control no-cache request headers, normally.
> access.log data with log_mime_hdrs on helps..
Here are a couple of requests:
1098307846.311 21 127.0.0.1 TCP_REFRESH_HIT/304 220 GET
http://192.168.2.75/test-rec.cgi - DIRECT/192.168.2.75 - [Host:
192.168.2.75\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.5) Gecko/20031021\r\nAccept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1\r\nAccept-Language:
en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection:
keep-alive\r\nIf-Modified-Since: Wed, 20 Oct 2004 11:37:46
GMT\r\nCache-Control: max-age=0\r\n] [HTTP/1.1 304 Not Modified\r\nDate:
Wed, 20 Oct 2004 21:30:46 GMT\r\nServer: Apache/2.0.49
(Unix)\r\nConnection: close\r\nExpires: Wed, 27 Oct 2004 16:37:46
GMT\r\nCache-control: max-age=6000\r\n\r]
1098307888.934 361 127.0.0.1 TCP_REFRESH_HIT/304 220 GET
http://192.168.2.75/test-rec.cgi - DIRECT/192.168.2.75 - [Host:
192.168.2.75\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.5) Gecko/20031021\r\nAccept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1\r\nAccept-Language:
en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection:
keep-alive\r\nIf-Modified-Since: Wed, 20 Oct 2004 11:37:46
GMT\r\nCache-Control: max-age=0\r\n] [HTTP/1.1 304 Not Modified\r\nDate:
Wed, 20 Oct 2004 21:31:28 GMT\r\nServer: Apache/2.0.49
(Unix)\r\nConnection: close\r\nExpires: Wed, 27 Oct 2004 16:37:46
GMT\r\nCache-control: max-age=6000\r\n\r]
Tack själv till deras hjälp!
JIM
Received on Wed Oct 20 2004 - 15:43:19 MDT
This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:02 MST