Search squid archive

Squid-3.3.8: Cant force to cache-hit on this url

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

 



Greetings all,

Im having problems with cache hit rates im trying to work out.

I have a complete random URL im concentrating on:
http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css

No matter what i do, i cannot get this URL to be served from the
cache, it's always a MISS.

Can anyone help me work out why?

I've cut down the squid conf to its most simple required items, with a
ridiculous single refresh_pattern:
-------------------------------------------------------------
debug_options ALL,1 22,5
cache_access_log            /var/log/squid3/access.log
cache_log                   /var/log/squid3/cache.log
cache_store_log             /var/log/squid3/store.log
cache_effective_user        proxy
cache_effective_group       proxy
http_port                   3128
cache_replacement_policy    heap LRU
maximum_object_size         512 MB
minimum_object_size         0 KB
cache_dir                   aufs /data/02-1000-DATA/squid 128000 24 128
cache_mem                   512 MB
http_access                 allow all
refresh_pattern . 43200 100% 43200  ignore-private ignore-no-cache
ignore-must-revalidate ignore-reload override-expire override-lastmod
store-stale ignore-auth
-------------------------------------------------------------

Using this to request the URL from Squid:
curl -x 192.168.1.1:3128 --silent -o /dev/null --dump-header
/dev/stdout "http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css";

Curl output:
----------------------------------------------
HTTP/1.1 200 OK
Date: Wed, 12 Mar 2014 06:03:32 GMT
Server: Apache/2.2.16 (Debian)
Last-Modified: Tue, 10 Jul 2012 07:46:42 GMT
ETag: "20e25cb-3674-4c474ee6b1c66"
Accept-Ranges: bytes
Content-Length: 13940
Vary: Accept-Encoding
Access-Control-Allow-Origin: http://www.performanceforums.com
Access-Control-Allow-Origin: http://performanceforums.com
Content-Type: text/css
X-Cache: MISS from linux
X-Cache-Lookup: MISS from linux:3128
Via: 1.1 lserv (squid/3.3.8)
Connection: keep-alive
----------------------------------------------

store.log (two requests):
----------------------------------------------
1394604192.912 RELEASE -1 FFFFFFFF 2735246D8165FF6D0185A8FD58055B57
200 1394604192        -1 1394704192 x-squid-internal/vary -1/0 GET
http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css
1394604192.912 RELEASE 00 0000009D 5FEA97A372BAA3C8605EE7284843456E
200 1394603265 1341906402        -1 text/css 13940/13940 GET
http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css
1394604193.367 SWAPOUT 00 0000009D E2ED99F3F1DFBDA6B0B1F26468B81319
200 1394604192 1341906402        -1 text/css 13940/13940 GET
http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css

1394604212.993 RELEASE -1 FFFFFFFF 6748E1D3C84D15B2B11C0E0AF81F34EE
200 1394604212        -1 1394704212 x-squid-internal/vary -1/0 GET
http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css
1394604212.993 RELEASE 00 0000009D 29EB2C8048CE1402B6B4A6EE549FDD0A
200 1394604192 1341906402        -1 text/css 13940/13940 GET
http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css
1394604213.410 SWAPOUT 00 0000009D E2ED99F3F1DFBDA6B0B1F26468B81319
200 1394604212 1341906402        -1 text/css 13940/13940 GET
http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css
----------------------------------------------

cache.log:
----------------------------------------------
2014/03/12 16:36:12.156 kid1| ctx: exit level  0
2014/03/12 16:36:12.156 kid1| refresh.cc(540) getMaxAge: getMaxAge:
'http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css'
2014/03/12 16:36:12.367 kid1| ctx: enter level  0:
'http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css'
2014/03/12 16:36:12.367 kid1| refresh.cc(247) refreshCheck:
refreshCheck: 'http://performanceforums.com/forums/mgc_cb_evo/clientscript/dojo/dijit/themes/claro/layout/TabContainer.css'
2014/03/12 16:36:12.367 kid1| refresh.cc(262) refreshCheck:
refreshCheck: Matched '. 2592000 100%% 2592000'
2014/03/12 16:36:12.367 kid1| refresh.cc(264) refreshCheck:     age:    60
2014/03/12 16:36:12.367 kid1| refresh.cc(266) refreshCheck:
check_time:     Wed, 12 Mar 2014 06:07:12 GMT
2014/03/12 16:36:12.367 kid1| refresh.cc(268) refreshCheck:
entry->timestamp:       Wed, 12 Mar 2014 06:06:12 GMT
2014/03/12 16:36:12.367 kid1| refresh.cc(207) refreshStaleness: FRESH:
age 60 <= stale_age 52697970
2014/03/12 16:36:12.367 kid1| refresh.cc(288) refreshCheck: Staleness = -1
2014/03/12 16:36:12.367 kid1| refresh.cc(373) refreshCheck:
refreshCheck: object isn't stale..
2014/03/12 16:36:12.367 kid1| refresh.cc(382) refreshCheck:
refreshCheck: returning FRESH_LMFACTOR_RULE
2014/03/12 16:36:12.367 kid1| http.cc(495) cacheableReply: YES because
HTTP status 200
----------------------------------------------

Thanks in advance.




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

  Powered by Linux