[squid-users] What do we do with this? force caching?

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Mon, 14 Oct 2013 02:28:27 +0300

What do we do with this?

# curl -I http://wiki.tests/squid
HTTP/1.1 200 OK
Date: Sun, 13 Oct 2013 23:10:19 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze17
Set-Cookie: DokuWiki=lsl8far86cnvmsi3cfc9ogbok6; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Set-Cookie: DW68700bfd16c2027de7de74a5a8202a6f=deleted; expires=Sat,
13-Oct-2012 23:10:18 GMT; path=/; httponly
Vary: Accept-Encoding
Content-Type: text/html; charset=utf-8

##end

Will it be a good idea to cache it?
If so what is the better option?
it's a small wiki that doesn't liked to be cached.
the debugs 22,2 shows

2013/10/14 01:23:08.245 kid1| refresh.cc(540) getMaxAge: getMaxAge:
'http://192.168.10.112/squid'
2013/10/14 01:23:08.260 kid1| ctx: enter level 0:
'http://192.168.10.112/squid'
2013/10/14 01:23:08.260 kid1| refresh.cc(247) refreshCheck:
refreshCheck: 'http://192.168.10.112/squid'
2013/10/14 01:23:08.260 kid1| refresh.cc(262) refreshCheck:
refreshCheck: Matched '^http://192\.168\.10\.112\/[a-z0-9\-\_]+ 604800
80%% 1728000'
2013/10/14 01:23:08.260 kid1| refresh.cc(264) refreshCheck: age: 60
2013/10/14 01:23:08.260 kid1| refresh.cc(266) refreshCheck:
check_time: Sun, 13 Oct 2013 23:24:08 GMT
2013/10/14 01:23:08.261 kid1| refresh.cc(268) refreshCheck:
entry->timestamp: Sun, 13 Oct 2013 23:23:08 GMT
2013/10/14 01:23:08.261 kid1| refresh.cc(176) refreshStaleness: STALE:
expires 375007874 < check_time 1381706648
2013/10/14 01:23:08.261 kid1| refresh.cc(288) refreshCheck: Staleness =
1006698774
2013/10/14 01:23:08.261 kid1| refresh.cc(399) refreshCheck:
refreshCheck: YES: max-stale limit
2013/10/14 01:23:08.261 kid1| http.cc(479) cacheableReply: NO because
refreshIsCachable() returned non-cacheable..

So the above acutallyy shows that since the original object was not
cachable it cannot be served from cache.
So now the only way of caching it is using some external software that
will edit the response.

How much is this access.log request from the network is?
TCP_MISS/200 8715 GET http://192.168.10.112/squid -
HIER_DIRECT/192.168.10.112 text/html

8715 bytes? 69720 bits?
I am not sure about it yet.

Thanks,
Eliezer
Received on Sun Oct 13 2013 - 23:28:42 MDT

This archive was generated by hypermail 2.2.0 : Mon Oct 14 2013 - 12:00:09 MDT