[squid-users] Squid not caching PHP/CGI requests?

From: Mohamed Lrhazi <mohamed@dont-contact.us>
Date: Fri, 10 Dec 2004 22:30:04 -0500

I found a couple for posts about this but could not help me.

The PHP file is:
# cat test.php
<html>
<?php
echo `date`;
?>
</html>

I request a ton of times though squid and squid: consults the peers and
all, then decides to fetch it direct from the server!!! here are two
such consecutive fetches showing the headers. Any idea who is squid
refusing to cache this? grep php /usr/local/squid/etc/* does not yield
anything.
I notcied the same with .cgi requests and also perl scripts where the file
exstension is .pl !!!

# wget -O - -S http://10.0.10.26:8080/test.php
--22:18:40-- http://10.0.10.26:8080/test.php
           => `-'
Connecting to 10.0.10.26:8080... connected.
HTTP request sent, awaiting response...
 1 HTTP/1.0 200 OK
 2 Server: Zeus/4.3
 3 Date: Sat, 11 Dec 2004 03:18:39 GMT
 4 Content-Type: text/html
 5 X-Powered-By: PHP/4.3.8
 6 X-Cache: MISS from rlx-0-1-2.internal-management
 7 X-Cache-Lookup: MISS from rlx-0-1-2.internal-management:8080
 8 Connection: close

<html>
Fri Dec 10 22:18:40 EST 2004
</html>

22:18:40 (42.97 KB/s) - `-' saved [44]

# wget -O - -S http://10.0.10.26:8080/test.php
--22:23:36-- http://10.0.10.26:8080/test.php
           => `-'
Connecting to 10.0.10.26:8080... connected.
HTTP request sent, awaiting response...
 1 HTTP/1.0 200 OK
 2 Server: Zeus/4.3
 3 Date: Sat, 11 Dec 2004 03:23:35 GMT
 4 Content-Type: text/html
 5 X-Powered-By: PHP/4.3.8
 6 X-Cache: MISS from rlx-0-1-2.internal-management
 7 X-Cache-Lookup: MISS from rlx-0-1-2.internal-management:8080
 8 Connection: close

<html>
Fri Dec 10 22:23:36 EST 2004
</html>

22:23:36 (42.97 KB/s) - `-' saved [44]
Received on Fri Dec 10 2004 - 20:30:07 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST