Re: httpd_accel not caching properly

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 01 Jul 2000 01:41:06 +0200

Jack Moffitt wrote:

[log details decoded]

-- Request 1 --

GET http://192.168.48.143:8080/index.html HTTP/1.0
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)
Host: 192.168.48.143
Connection: Keep-Alive

That is fine. A plain GET request.

-- Response 1 --

HTTP/1.1 200 OK
Date: Fri, 30 Jun 2000 23:23:49 GMT
Server: Apache/1.3.12 (Unix) PHP/3.0.16
X-Powered-By: PHP/3.0.16
Connection: close
Content-Type: text/html

That is not very good for cacheability. No information on when this page
was modified or how long it might be cached are present. For all what it
looks this is a dynamically generated non-static object.

Also, the connection is closed, wich is further evidence of this.

-- Request 2 --

GET http://192.168.48.143:8080/remote/r.js HTTP/1.0
Accept: */*
Referer: http://192.168.48.143/index.html
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)
Host: 192.168.48.143
Connection: Keep-Alive

Again all looks fine. Plain GET request for r.js referenced from
index.html.

-- Response 2 --

HTTP/1.1 200 OK
Date: Fri, 30 Jun 2000 23:23:49 GMT
Server: Apache/1.3.12 (Unix) PHP/3.0.16
X-Powered-By: PHP/3.0.16
Connection: close
Content-Type: text/html

Same result here. From all what it looks the r.js object is a
dynamically generated non-static object.

A guess is that your Apache is configured to process index.html and r.js
using PHP.

--
Henrik Nordstrom
Squid hacker
Received on Fri Jun 30 2000 - 17:44:25 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:15 MST