http accelerator questions

From: Jon Drukman <jsd@dont-contact.us>
Date: Fri, 16 Jul 1999 10:45:46 -0700

hi there. i have some questions about the way the http accelerator mode
works. basically, what i thought would happen is:

1. user requests object.
2. squid checks to see if it has object.
3. if it has, and the object hasn't expired, it will refetch it from the
origin server.
    otherwise, it delivers the cached version.

this basically isn't happening as far as my testing indicates. i'm using
2.2-Stable4.

i keep requesting the same GIF over and over again but squid always queries
the origin server, despite the presence of an "Expires:" header which
indicates that the object is good for 2 minutes.

here's a snippet of the squid log:

206.169.18.74 - - [15/Jul/1999:16:33:58 -0700] "GET
http://hudsucker.gamespot.com/shared/vote_now.gif HTTP/1.0" 304 259
TCP_MISS:DIRECT
206.169.18.74 - - [15/Jul/1999:16:33:58 -0700] "GET
http://hudsucker.gamespot.com/shared/vote_now.gif HTTP/1.0" 304 259
TCP_MISS:DIRECT
206.169.18.74 - - [15/Jul/1999:16:33:59 -0700] "GET
http://hudsucker.gamespot.com/shared/vote_now.gif HTTP/1.0" 304 259
TCP_MISS:DIRECT
206.169.18.74 - - [15/Jul/1999:16:33:59 -0700] "GET
http://hudsucker.gamespot.com/shared/vote_now.gif HTTP/1.0" 304 259
TCP_MISS:DIRECT

and here's the HEAD for that request:

200 OK
Cache-Control: max-age=120
Connection: close
Date: Fri, 16 Jul 1999 17:44:27 GMT
Accept-Ranges: bytes
Server: Apache/1.3.6 (Unix)
Content-Length: 204
Content-Type: image/gif
ETag: "25a81-cc-34bfbaa8"
Expires: Fri, 16 Jul 1999 17:46:27 GMT
Last-Modified: Fri, 16 Jan 1998 19:53:12 GMT
Client-Date: Fri, 16 Jul 1999 17:44:27 GMT
Client-Peer: 206.169.18.74:80

have i misconfigured something or do i just not understand how this works?

Jon Drukman
Director Of Technology
GameSpot
Received on Fri Jul 16 1999 - 11:41:59 MDT

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