I am pulling my hair out here.. Why cant I get proxy cache to work.
I have set the usual rules inc port 8080, cache on disk (yes), enabled etc etc
I have tried just about every configuration posted, and I have to say that the config doesnt appear that hard.
I am using transparent, so I have a redirect in the FW and yes the redirects increase consistantly.
I can even, block sites and redirect them to my own web site.
Under status tab, there are:
NO Hits
No Hits sent to clients
No cache used
requests 344,total ram used 909kb,received from servers 2512 kb,sent to clients 2510kb.
And under general tab No cache contents.
I do not want to use squid, well actually I do, but it is CLI driven and I dont have the patience to learn all the ever changing CLI options of Linux… I want a simple sollution that is CGI.
I have tried using the page http://www.lagado.com/tools/cache-test to do my cache tests, and whilst it reports taht I have a functioning Proxy, the cache facility confirms that I have no hits.
IS it because that I am using the MT RBoard test scenario deep inside my routed network and behind a Natted gateway many hops upstream.. I was reluctant to actually test it out on my real gateway router, I was kind of hoping to prove to myself whether it would work effectively, before installing it in the “real gateway”
You have no cache. Set the cache size with max-cache-size=xxx (in KB). Default is max-cache-size=none, and the proxy doesnt cache.
Also, setting always-from-cache=yes can help to avoid not hitting cache because your browser using the refresh header inside the get method. In this case proxy would not respond, cause its a refresh.
Yes I have cache size, for some reason cache size does not show up with “export compact” which kind of defeats the whole export compact thing!
But I will try your suggestion regarding the “always from cache”, but I have to say that its not shown in any example configurations that I have seen, or the wiki..
But never say never, so I’ll keep you posted.
[admin@MikroTik] /ip proxy> pr
enabled: yes
src-address: 0.0.0.0
port: 8080
parent-proxy: 0.0.0.0
parent-proxy-port: 0
cache-administrator: webmaster
max-cache-size: 8000KiB
cache-on-disk: yes
max-client-connections: 600
max-server-connections: 600
max-fresh-time: 3d
serialize-connections: no
always-from-cache: no
cache-hit-dscp: 4
cache-drive: system
Sorry to disappoint, its still the same, NO hits.. I was doing the page test again with Lagado.com and was careful to clear browser cache before refreshing page.
Hello,
it doesn’t seem like the solution. My config is preety much the same (proxy as below, setup as transparent). I’ve got the same problem and DNS didn’t work for me.
Anyone has other suggestions?
PS: /ip proxy export compact
[admin@MikroTik] /ip proxy> export compact
# nov/26/2013 21:40:22 by RouterOS 6.6
# software id = VIKL-D30F
#
/ip proxy
set always-from-cache=yes cache-administrator=me@mail.com cache-on-disk=yes enabled=yes max-cache-size=102401KiB parent-proxy=0.0.0.0