Search squid archive

Re: Only TCP_MISS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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.

Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUtjQWAAoJELJo5wb/XPRjGGYH/ijB2EHSEdaxl9r4tT5dyHjv
3H4cdiUhchEFO2MsGvUOaL4qooO1bJr//IbroLVPmMDy4xHGLMLfk9pxeRFEvt0o
KB01vDSA3Fx75swxTvnKNroteyMd2RMAvkrbmMwKKTiE+Uva/aGxFC4YyPjSLJ4n
kP5BCs1MCq5h+gbUX/spLvRb069GwKXJTIEG5/J01Tv2eD5JqHLJaDFPqjwF3NgS
7zSIk79y8kHruDVnEStSW9ZGDXThRfGtXuMzwXXoFha8DM4VQXr3KiggxJR7F+3t
z9kVQmhSz0Q1PW9t+VTCJdIagEy/M4aR4OrnBN8Rp1sYNDxkjauKeceV5J7KxFs=
=9u9h
-----END PGP SIGNATURE-----
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux