[squid-users] problems with HTTP acceleration

From: Octopus <squid@dont-contact.us>
Date: Wed, 13 Oct 2004 14:37:51 -0700

I'm having some problems getting HTTP acceleration to work with a web
server. I've got the web server in my local NOC and am serving it to a
client via a leased line. I want to install a httpd accelerator squid
cache in the clients NOC as the leased line is too slow.

I've got a pretty normal install of squid-2.5.6-r2 on a Gentoo/Sparc
box. I haven't changed the default configs very much except to make it
a web accelerator and point it at the proper server and allow anyone to
connect to it.

There are two types of content I want to cache. Normal images. And
images guarded by a web application. Neither are caching.

Here's an example.

First the basic image...

==> /var/log/squid/store.log <==
1097694326.802 RELEASE -1 FFFFFFFF 5C70CA242C6B8B71BE14082A80D515C5 304
1097694336 -1 -1 unknown -1/0 GET
http://HOST/webnativedoc/NEW/top_header.gif

==> /var/log/squid/access.log <==
1097694465.677 159 192.168.2.1 TCP_MISS/304 257 GET
http://HOST/webnativedoc/NEW/top_header.gif - DIRECT/X.X.X.X -

And here the web app guarded image.

==> /var/log/squid/access.log <==
1097694562.077 326 192.168.2.1 TCP_MISS/200 4586 GET
http://HOST/webnative/getimage?-small+/mnt/IDERAID_01/tsi_1/current/covers/Jun2003.eps - DIRECT/X.X.X.X image/jpeg

==> /var/log/squid/store.log <==
1097694562.077 RELEASE -1 FFFFFFFF 5CE78A3CDD0B1D2E36095BBCB8935B06 200
1097694571 -1 -1 image/jpeg 4301/4301 GET
http://HOST/webnative/getimage?-small+/mnt/IDERAID_01/tsi_1/current/covers/Jun2003.eps

Both are giving me TCP_MISS's and I cant tell why. I thought it might
be something in the headers received by the server. Here's what I get:

root # curl --head
http://LOGIN:PASSWORD@HOST/webnativedoc/images/NEW/wn_high.gif
HTTP/1.1 200 OK
Date: Wed, 13 Oct 2004 18:56:02 GMT
Server: Apache/1.3.14 (Unix)
Last-Modified: Fri, 09 Jan 2004 02:18:29 GMT
ETag: "2c117ba-175-3ffe0f75"
Accept-Ranges: bytes
Content-Length: 373
Content-Type: image/gif

root # curl --head
http://LOGIN:PASSWORD@HOST/webnative/getimage?-small+/mnt/IDERAID_01/tsi_1/current/covers/Jun2003.eps
HTTP/1.1 200 OK
Date: Wed, 13 Oct 2004 19:08:33 GMT
Server: Apache/1.3.14 (Unix)
Content-length: 4301
Content-Type: image/jpeg ; name="Jun2003.eps"

Nothing seems suspicious. Could anyone help me determine why nothing is
being stored in the cache? I really need to get to the bottom of
this... I can provide someone with a test login and password to the
site if that would be helpful.

Thanks...
Received on Wed Oct 13 2004 - 15:37:49 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:02 MST