[squid-users] Odp: Re: Only TCP_MISS

Robert wrkilu at wp.pl
Wed Jan 14 22:44:14 UTC 2015


Dnia Środa, 14 Stycznia 2015 10:17 Amos Jeffries <squid3 at treenet.co.nz> napisał(a)
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On 14/01/2015 10:28 a.m., Robert wrote:
> > Hi,
> >
> > I think my Squid doesn't cache. I have Ubuntu 14, I installed Squid
> > from packages (3.3.8) and now from source (3.4.10). In both cases I
> > used just basic configuration like that basic from installing from
> > source. I typed in webbrowser proxy manually and in access.log I
> > get still e.g.:
> >
> > 1421183358.241    528 10.59.1.9 TCP_MISS/200 5430 CONNECT
> > tools.google.com:443 - HIER_DIRECT/2607:f8b0:400d:c06::8b -
> > 1421183397.402 313700 10.59.1.9 TCP_MISS/200 10327 CONNECT
> > s-static.ak.facebook.com:443 - HIER_DIRECT/2600:1404:14:189::236 -
> CONNECT tunnels are not cacheable.
> > 1421183413.126    114 10.59.1.9 TCP_MISS/200 1701 GET
> > http://finance.services.appex.bing.com/Market.svc/AppTileV2? -
> > HIER_DIRECT/23.220.100.184 application/xml 1421183413.136    121
> > 10.59.1.9 TCP_MISS/200 1657 GET
> > http://en-us.appex-rf.msn.com/cgtile/v1/en-US/News/Today.xml -
> > HIER_DIRECT/23.220.100.184 application/xml 1421183413.145    129
> > 10.59.1.9 TCP_MISS/200 1593 GET
> > http://en-us.appex-rf.msn.com/cgtile/v1/en-US/HealthAndFitness/Home.xml?
> > - HIER_DIRECT/23.220.100.184 application/xml 1421183413.147    131
> > 10.59.1.9 TCP_MISS/200 305 GET
> > http://service.weather.microsoft.com/appex/DesktopTile/PreInstallLiveTile?
> > - HIER_DIRECT/23.220.115.174 - 1421183413.216     88 10.59.1.9
> > TCP_MISS/200 1554 GET
> > http://en-us.appex-rf.msn.com/cgtile/v1/en-US/Sports/Today.xml? -
> > HIER_DIRECT/23.220.100.184 application/xml
> There are no repeat requests in the above trace. Thus no way to tell
> whether a HIT was even possible.
> Without query string details the only testable URI was the
> News/Today.xml and that says:
> * its cacheable for only 6 minutes 5 seconds. Squid will use a
> revalidation contitional request to update it on repeat visitors
> outside that time...
> * The ETag used to identify the reply object uniquely is constantly
> changing even when the reply object has *not* changed. So even if
> Squid does cache one reply the next update/revalidation check will
> says the object changed - which is a MISS instead of REFRESH. Causing...
> * An If-None-Match conditional request returned the full content
> unchanged.
> * An If-Modified-Since conditional request returned the full content
> unchanged.
> All of that means Squid only ever gets told by the server to discard
> its cached content and waste bandwidth re-downloading it. IMHO these
> are signs of a rather badly designed site.
> > 1421183413.322    185 10.59.1.9 TCP_MISS_ABORTED/503 1541 GET
> > http://www.amazon.com/gp/am/metro/application/livetileRedirect? -
> > HIER_DIRECT/205.251.242.103 text/html
> > 1421183415.611    132 10.59.1.9 TCP_MISS/206 8526 GET
> > http://img.stb.s-msn.com/usappex/tenant/amp/entityid/AA87i9P.jpg? -
> > HIER_DIRECT/23.220.133.211 image/jpeg 1421183416.619     34
> > 10.59.1.9 TCP_MISS/206 834 GET
> > http://img.stb.s-msn.com/usappex/tenant/amp/entityid/AA87i9P.jpg? -
> > HIER_DIRECT/23.220.133.211 image/jpeg 1421183417.094     76
> > 10.59.1.9 TCP_MISS/206 11123 GET
> > http://img.stb.s-msn.com/usappex/tenant/amp/entityid/AA86gtq.jpg? -
> > HIER_DIRECT/23.220.133.211 image/jpeg 1421183418.269     52
> > 10.59.1.9 TCP_MISS/206 4882 GET
> http://img.stb.s-msn.com/usappex/tenant/amp/entityid/AA87zJF.jpg? -
> > HIER_DIRECT/23.220.133.211 image/jpeg
> Partial messages (206) from servers are not cacheable by Squid. And
> again the non-logged query parameters may make what appears to be
> identical requests actually quite different.
> > I don't have any TCP_HIT :( , so what is going on ? why Squid
> > doesn't work ? :(
> >
> For testing configure:
>   strip_query_terms off
> Also, how are you doing the testing?
> HTTP clients are able to send explicit instructions to proxies
> forbidding the use of cache. The curl tools do that by default, and
> also the browser "Refresh" or "Reload" buttons.
>  

1. ok , so testing I do by surfing on two sites wp.pl and kosmos.pl , if you think they are wrong please give me samples of sites which will be good for testing 
2. I'm testing by going few time through the same links and also using refresh , and I get most :
TCP_MISS/200
sometimes:
TCP_REFRESH_UNMODIFIED/304 






More information about the squid-users mailing list