[squid-users] refresh_pattern doesn't work

From: George Hong <[email protected]>
Date: Mon, 23 Aug 2004 16:26:08 +0800

Hi there,
  I'm running a reversed squid server and would like to update the gif
file in, say every 3 minutes. And I set it up as following in
squid.conf:
  refresh_pattern -i \.gif$ 3 100% 3

But when I put in a different image file with the same name (images.gif)
the squid doesn't update the image at all. If I go directly to the
origin server, it works. (Sometimes I need to clean the cache, but squid
just simply doesn't work)

Here is the html code for the testing website: (www.cachetest.com)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>No title</title>
</head>

<body>
<p>index test 120!
</p>
<p><img src="images/images.gif" width="91" height="135"></p>
<p>&nbsp;</p>
</body>
</html>

Here is part of the access log: (and I modify the IP address)
1093290736.540 627 192.168.96.51 TCP_HIT/200 618 GET
http://www.cachetest.com/ - NONE/- text/html
1093290736.567 26 192.168.96.51 TCP_HIT/200 5740 GET
http://www.cachetest.com/images/images.gif - NONE/- image/gif
1093290811.916 1 192.168.96.51 TCP_IMS_HIT/304 207 GET
http://www.cachetest.com/ - NONE/- text/html
1093290811.946 29 192.168.96.51 TCP_IMS_HIT/304 205 GET
http://www.cachetest.com/images/images.gif - NONE/- image/gif
1093290897.900 1 192.168.96.51 TCP_IMS_HIT/304 207 GET
http://www.cachetest.com/ - NONE/- text/html
1093290897.916 15 192.168.96.51 TCP_REFRESH_HIT/304 212 GET
http://www.cachetest.com/images/images.gif - DIRECT/210.192.96.228 -
1093290977.757 2 192.168.96.51 TCP_IMS_HIT/304 207 GET
http://www.cachetest.com/ - NONE/- text/html
1093290977.771 13 192.168.96.51 TCP_REFRESH_HIT/304 212 GET
http://www.cachetest.com/images/images.gif - DIRECT/210.192.96.228 -

The cache does go to the server for the file, is there anyway to enforce
the squid to treat the request as tcp_miss when it expires?
If it's impossible, could someone tell me where/how to hack?
Thanks a lot.
George
Received on Mon Aug 23 2004 - 02:26:22 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT