Re: [squid-users] TCP_MISS

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 28 Mar 2010 23:40:45 +1300

Rudolf Meijering wrote:
> 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.
>

The "Cache-Control: private".

refresh_pattern only extends the time things already in cache are stored
for.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE8 or 3.0.STABLE25
   Current Beta Squid 3.1.0.18
Received on Sun Mar 28 2010 - 10:40:55 MDT

This archive was generated by hypermail 2.2.0 : Sun Mar 28 2010 - 12:00:06 MDT