-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/01/2015 10:07 a.m., Robert wrote: > Dnia Czwartek, 15 Stycznia 2015 12:54 Yuri Voinov > <yvoinov@xxxxxxxxx> napisał(a) >> > This URL > > http://www.squid-cache.org/Images/img4.jpg > > produces HIT on second query. > > > >> Ok, this is working - give TCP_MEM_HIT/200 > >> But can anybody explain me why such a images are not cached ? >> 1421355736.332 341144 10.59.1.9 TCP_MISS/200 9228 CONNECT >> api.instagram.com:443 - HIER_DIRECT/107.23.224.121 - >> 1421355736.332 14042 10.59.1.9 TCP_MISS/200 255 CONNECT >> www.facebook.com:443 - HIER_DIRECT/2a03:2880:f000:1:face:b00c:0:1 >> - 1421355736.577 1980 10.59.1.9 TCP_MISS/200 62566 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/11/8334168249_1b5c1a6e7a_k-726x400.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355736.828 738 >> 10.59.1.9 TCP_MISS/200 48321 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/11/2335080161_6c96f831b1_b-726x400.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355737.010 3036 >> 10.59.1.9 TCP_MISS/200 124617 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/11/277485096_a64e491f09_o-726x400.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355737.461 376 >> 10.59.1.9 TCP_MISS/200 627 GET >> http://www.blogojciec.pl/wp-content/themes/rigel/images/main_slider_bg.png >> - HIER_DIRECT/185.23.21.14 image/png 1421355737.842 357 >> 10.59.1.9 TCP_MISS/200 447 GET >> http://www.blogojciec.pl/wp-content/plugins/facebook-page-promoter-lightbox/includes/front/scs/blank.gif >> - HIER_DIRECT/185.23.21.14 image/gif 1421355738.547 1695 >> 10.59.1.9 TCP_MISS/200 138449 GET >> http://www.blogojciec.pl/wp-content/uploads/2013/09/DSC_1397.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355738.819 2937 >> 10.59.1.9 TCP_MISS/200 143772 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/11/6947435171_465587a2d4_k-726x400.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355741.078 7149 >> 10.59.1.9 TCP_MISS/200 384465 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/11/AMNESTY_STOP_1-716x400.png >> - HIER_DIRECT/185.23.21.14 image/png 1421355741.339 240241 >> 10.59.1.9 TCP_MISS/200 5106 CONNECT clients2.google.com:443 - >> HIER_DIRECT/2607:f8b0:4002:c07::8a - 1421355744.032 7405 >> 10.59.1.9 TCP_MISS/200 538419 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/11/Rachels-header-with-Ben-added-and-name-726x400.png >> - HIER_DIRECT/185.23.21.14 image/png 1421355744.092 8379 >> 10.59.1.9 TCP_MISS/200 470427 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/11/poland-726x400.png >> - HIER_DIRECT/185.23.21.14 image/png 1421355746.084 1964 >> 10.59.1.9 TCP_MISS/200 60489 GET >> http://www.blogojciec.pl/wp-content/uploads/2015/01/4815760850_4b06e8e3d1_b-960x430.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355746.333 351147 >> 10.59.1.9 TCP_MISS/200 9257 CONNECT api.instagram.com:443 - >> HIER_DIRECT/107.23.224.121 - 1421355746.333 20041 10.59.1.9 >> TCP_MISS/200 173 CONNECT fbstatic-a.akamaihd.net:443 - >> HIER_DIRECT/2600:1404:14::17dc:64b3 - 1421355746.333 20039 >> 10.59.1.9 TCP_MISS/200 173 CONNECT fbstatic-a.akamaihd.net:443 - >> HIER_DIRECT/2600:1404:14::17dc:64b3 - 1421355746.507 2373 >> 10.59.1.9 TCP_MISS/200 152416 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/03/4957524690_62271cbc0f_o-e1409310201525-960x430.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355747.597 3462 >> 10.59.1.9 TCP_MISS/200 207217 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/05/sad.jpg - >> HIER_DIRECT/185.23.21.14 image/jpeg 1421355747.698 1184 >> 10.59.1.9 TCP_MISS/200 61353 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/12/6697132255_2ddb665dd7_o-800x430.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355748.101 2006 >> 10.59.1.9 TCP_MISS/200 62702 GET >> http://www.blogojciec.pl/wp-content/uploads/2015/01/1902628132_1dc03a6544_b-960x430.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355750.199 6060 >> 10.59.1.9 TCP_MISS/200 87128 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/06/kitchenok.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355750.357 2745 >> 10.59.1.9 TCP_MISS/200 91760 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/12/14296826765_557697dc2a_k-960x430.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg 1421355750.542 6399 >> 10.59.1.9 TCP_MISS/200 174792 GET >> http://www.blogojciec.pl/wp-content/uploads/2014/05/spiderman.jpg >> - HIER_DIRECT/185.23.21.14 image/jpeg ^C > >> My testing was: - first I opened this blog site in Chrome - then >> I opened it in IE > >> so why ? The site is using HTTP header "Vary: User-Agent". So each time you change browser Squid has to discard its content and fetch new ones. There is nothing that can be done about that short of getting the website itself fixed. FYI: I checked these URLs with the tool you can find at http://redbot.org/. Simply pick a URL you think should be cached, and paste it into the redbot tool. It runs a series of tests and lists all the HTTP problems it can find. For testing ensure that you; * use only one browser at a time - two is fine overall, BUT only use one for a series of tests before switching and repeating the whole series. if you switch in the middle of the series or after only one request things liek Vary in HTTP will make your test shave garbage results (eg. constant MISS you are seeing). * make several requests in a row from your chosen browser *without* using the refresh/reload button (instead click in address bar and press enter). * clear the *browser* cach if you like between requests to see what Squid does with multiple clients. Also, please note that several different result tags/codes (HIT, REFRESH, SWAPFAIL, SHARED, STALE, OFFLINE, etc) are all "cache hits". See <http://wiki.squid-cache.org/SquidFaq/SquidLogs#Squid_result_codes> for details on what the tags all mean. Amos -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJUuHQ9AAoJELJo5wb/XPRjlH4IAMyzMsSIXsym+bjDJG2NThyf lUCsrvFUKxE10WBc32tjzyArjM/Ve+YT2zUvjHWYkgd+/YSH+3IvwpFd4jplaUWZ H5faFquaK/75uOtGPSyZxrjaLOCo0F/HNO4U/7XQrULpFpSJolDFDmCASW3wtO9a LdH+7J1SwP+jz1jQ2h02oyqkuxdg8669ZDzxcztkSJnZwP3GSg0R4IjWE2hb/HKK DstGLlLJUgeJtor0KJAN459IOHE5pv590gGuWQdGZO0abANphDdWdKdve2ClVn5B MTR70O+LuRwkfSdsC9FqUd5fMs8dQv8YQ1ue/7le/ypx/X6UpkHYKqOlAlB46MM= =deb/ -----END PGP SIGNATURE----- _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users