Hi Amos, Thanks for the advice, I put the dynamic catch all at the bottom of the pattern list before the . catch now, and restarted squid. I accessed the website from my computer using firefox. The source of the webpage for instance has this line: <TD vAlign="top" style="padding:4px 4px 0px 4px;" width="100%"><img border="0" src="http://www.mymaties.com/portal/pls/portal/docs/1/651150.JPG"><BR> But after accessing the website several times by opening it in a new tab and also refreshing the page I get the following log entries: 1269675769.188 861 10.1.0.105 TCP_MISS/200 26332 GET http://www.mymaties.com/portal/pls/portal/docs/1/651150.JPG - DIRECT/146.232.128.112 image/pjpeg 1269676022.842 1380 10.1.0.105 TCP_MISS/200 26332 GET http://www.mymaties.com/portal/pls/portal/docs/1/651150.JPG - DIRECT/146.232.128.112 image/pjpeg 1269676041.597 1332 10.1.0.105 TCP_MISS/200 26332 GET http://www.mymaties.com/portal/pls/portal/docs/1/651150.JPG - DIRECT/146.232.128.112 image/pjpeg The last entry is a refresh of a page, but it does not seem like it was turned into an IMS request? Either way these files don't get cached. I then looked at the http response in wireshark, doesn't seem like this server wants anything cached at all. HTTP/1.0 200 OK Cache-Control: no-cache Expires: 0 Pragma: no-cache Cache-Control: private Expires: Sat, 27 Mar 2010 15:50:14 GMT Content-Type: image/pjpeg Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server OracleAS-Web-Cache-10g/10.1.2.0.2 (H;max-age=28800+0;age=914;ecid=634429445944,0) Content-Length: 25577 Date: Sat, 27 Mar 2010 07:50:14 GMT Content-Location: /servlet/RepositoryServlet/portal/docs/1/651150.JPG X-ORACLE-CACHE-INFO1: Cache Key: 12-JAN-2010 14:14.57TRUE, Cache Level: SYSTEM X-ORACLE-CACHE-INFO2: Ping Success X-ORACLE-CACHE-STATUS: HIT,PING X-Cache: MISS from gw.wispr.co.za X-Cache-Lookup: MISS from gw.wispr.co.za:8888 Via: 1.0 gw.wispr.co.za (squid/3.0.STABLE18) Proxy-Connection: keep-alive I altered my rules like this: refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern windowsupdate.com/.*\.(cab|exe)(\?|$) 518400 100% 518400 reload-into-ims refresh_pattern update.microsoft.com/.*\.(cab|exe)(\?|$) 518400 100% 518400 reload-into-ims refresh_pattern download.microsoft.com/.*\.(cab|exe)(\?|$) 518400 100% 518400 reload-into-ims refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880 refresh_pattern \.deb$ 518400 100% 518400 override-expire refresh_pattern -i \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv)(\?|$) 161280 3000% 525948 override-expire reload-into-ims ignore-no-cache ignore-private override-expire refresh_pattern (cgi-bin|\?) 0 0% 0 refresh_pattern . 0 20% 4320 But I still don't get any cache hits. Any ideas why? It's not that important if it doesn't work, I'm just interested in what is stopping it from being cached. Thanks, On Fri, Mar 26, 2010 at 1:46 AM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote: > Rudolf Meijering wrote: >> >> Hi, >> >> access.log gives the following misses for gif files: >> >> 1269544961.348 4312 10.1.0.105 TCP_MISS/200 1431 GET >> http://www.mymaties.com/portal/pls/portal/docs/1/591848.GIF - >> DIRECT/146.232.128.112 image/gif >> 1269544996.893 39857 10.1.0.105 TCP_MISS/200 1542 GET >> http://www.mymaties.com/portal/pls/portal/docs/1/590297.GIF - >> DIRECT/146.232.128.112 image/gif >> 1269545005.696 996 10.1.0.105 TCP_MISS/200 1078 GET >> http://www.matiesalumni.net/portal/pls/portal/docs/1/525965.GIF - >> DIRECT/146.232.128.115 image/gif >> 1269545005.754 1053 10.1.0.105 TCP_MISS/200 1349 GET >> http://www.matiesalumni.net/portal/pls/portal/docs/1/525966.GIF - >> DIRECT/146.232.128.115 image/gif >> 1269545005.804 1103 10.1.0.105 TCP_MISS/200 1078 GET >> http://www.matiesalumni.net/portal/pls/portal/docs/1/525967.GIF - >> DIRECT/146.232.128.115 image/gif >> 1269545007.327 2627 10.1.0.105 TCP_MISS/200 940 GET >> http://www.matiesalumni.net/portal/pls/portal/docs/1/526074.GIF - >> DIRECT/146.232.128.115 image/gif >> 1269545010.443 5743 10.1.0.105 TCP_MISS/200 1099 GET >> http://www.matiesalumni.net/portal/pls/portal/docs/1/525968.GIF - >> DIRECT/146.232.128.115 image/gif >> 1269545011.320 1837 10.1.0.105 TCP_MISS/200 11973 GET >> http://www.mymaties.com/portal/pls/portal/docs/1/590297.GIF - >> DIRECT/146.232.128.112 image/gif >> 1269545020.259 793 10.1.0.105 TCP_MISS/200 1385 GET >> http://www.mymaties.com/portal/pls/portal/docs/1/624561.GIF - >> DIRECT/146.232.128.112 image/gif >> 1269545020.486 995 10.1.0.105 TCP_MISS/200 865 GET >> http://www.mymaties.com/portal/pls/portal/docs/1/19147.GIF - >> DIRECT/146.232.128.112 image/gif >> 1269545022.480 3012 10.1.0.105 TCP_MISS/200 863 GET >> http://www.mymaties.com/portal/pls/portal/docs/1/24073.GIF - >> DIRECT/146.232.128.112 image/gif >> 1269545024.763 504 10.1.0.105 TCP_REFRESH_UNMODIFIED/304 251 GET >> http://www.sun.ac.za/newweb07/images/kennis_maroon.gif - >> DIRECT/146.232.20.38 - >> 1269545024.856 597 10.1.0.105 TCP_MISS/200 1373 GET >> http://www.mymaties.com/portal/pls/portal/docs/1/590622.GIF - >> DIRECT/146.232.128.112 image/gif >> 1269545026.455 2195 10.1.0.105 TCP_MISS/200 1093 GET >> http://sun025.sun.ac.za/portal/pls/portal/docs/1/30912.GIF - >> DIRECT/146.232.128.46 image/gif >> 1269545026.663 6169 10.1.0.105 TCP_MISS/304 311 GET >> http://www.mymaties.com/images/FFFFFFtr.gif - DIRECT/146.232.128.112 >> text/html >> 1269545028.076 3789 10.1.0.105 TCP_MISS/200 1063 GET >> http://www.matiesalumni.net/portal/pls/portal/docs/1/525969.GIF - >> DIRECT/146.232.128.115 image/gif >> 1269545028.355 18866 10.1.0.105 TCP_MISS/200 1431 GET >> http://www.mymaties.com/portal/pls/portal/docs/1/591848.GIF - >> DIRECT/146.232.128.112 image/gif >> 1269545028.435 4147 10.1.0.105 TCP_REFRESH_UNMODIFIED/304 251 GET >> http://www.sun.ac.za/newweb07/images/bullet2.gif - >> DIRECT/146.232.20.38 - >> 1269545029.107 4820 10.1.0.105 TCP_MISS/200 1055 GET >> http://www.matiesalumni.net/portal/pls/portal/docs/1/525972.GIF - >> DIRECT/146.232.128.115 image/gif >> 1269545029.335 9869 10.1.0.105 TCP_MISS/200 865 GET >> http://www.mymaties.com/portal/pls/portal/docs/1/24072.GIF - >> DIRECT/146.232.128.112 image/gif >> 1269545029.723 5436 10.1.0.105 TCP_MISS/200 1059 GET >> http://www.matiesalumni.net/portal/pls/portal/docs/1/525970.GIF - >> DIRECT/146.232.128.115 image/gif >> 1269545030.245 9982 10.1.0.105 TCP_MISS/304 311 GET >> http://www.mymaties.com/images/FFFFFFtl.gif - DIRECT/146.232.128.112 >> text/html >> 1269545030.703 25944 10.1.0.105 TCP_MISS/304 311 GET >> http://www.mymaties.com/images/pobtrans.gif - DIRECT/146.232.128.112 >> text/html >> >> I have the following refresh patterns: >> refresh_pattern ^ftp: 1440 20% 10080 >> refresh_pattern ^gopher: 1440 0% 1440 >> refresh_pattern (cgi-bin|\?) 0 0% 0 >> refresh_pattern windowsupdate.com/.*\.(cab|exe)(\?|$) 518400 100% >> 518400 reload-into-ims >> refresh_pattern update.microsoft.com/.*\.(cab|exe)(\?|$) 518400 100% >> 518400 reload-into-ims >> refresh_pattern download.microsoft.com/.*\.(cab|exe)(\?|$) 518400 100% >> 518400 reload-into-ims >> refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880 >> refresh_pattern \.deb$ 518400 100% 518400 override-expire >> refresh_pattern -i \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv)(\?|$) >> 161280 3000% 525948 override-expire reload-into-ims >> refresh_pattern . 0 20% 4320 >> >> Any idea why there is so much misses? What could I do to improve the hit >> rates? > > Some of those are responses to IMS requests. Which your rule forces reload > requests to become. > > Maybe the server is simply responding with 200 OKAY regardless of getting an > IMS request. > > Maybe the requests actually did have ? query strings. You placed your > cactch-all dynamic content rules for preventing storage of badly controlled > dynamic pages above the image caching rules. > > Maybe several of your users favor Chrome. I've heard that browser sends > no-cache header by default. Which results in middle proxies being unable to > cache anything for improved access, and in fact degrade access for other > browers. > > > Amos > -- > Please be using > Current Stable Squid 2.7.STABLE8 or 3.0.STABLE25 > Current Beta Squid 3.1.0.18 > -- Rudolf Meijering