Cache Options

Is there any way to say, any file from microsoft.com/* say a ZIP or EXE would be always cached? Just wondering.

if cache is enabled, it’s already “always” caching everything. do you mean there is something that is not always cached?

‘ip proxy cache’ is used for caching/no_caching rules,

http://www.mikrotik.com/testdocs/ros/2.9/ip/webproxy_content.php#7.53.5

Dear sergejs,

Can you give any doc or example for your new MT OS ver 3 cache options, that will be very helpful, you have linked old cache option of ver 2.9.

Thanks n regards

The thought was to tell it to either pre-cache items, such as CNN, MSNBC.com. i.e. it goes out every hour and grabs the main page..

Also, to change the caching time, say put the server that windows updates come from to 30 days or something.

gmsmstr, it is not possible to specify cache keepalive timeout for specific pages.


hulk-bd, work on 3.0 documentation is in progress.
Do you have any specific questions about 3.0 ‘ip proxy’ ?

Dear sergejs,

Thank you very much for your reply. yes I have some questions about ip proxy.

1st: How cache on disk works? I mean if I uncheck this option in my ip proxy then where the cache will be remain? in the ram or any other place? which option will be faster; with cache on disk or without cache on disk?

2nd: In the previous web proxy cache I watched the RAM and the hdd both got the cache objects same time, but in the ver 3 cache I don’t see much cache objects in the RAM. Is there any way to store cache objects only in the RAM to boost the browsing or download speed?

3rd: what is the Max fresh time?

Thanks n regards

By the way the documentation for proxy is here,
http://www.mikrotik.com/testdocs/ros/3.0/pnp/proxy.php

1st: How cache on disk works? I mean if I uncheck this option in my ip proxy then where the cache will be remain? in the ram or any other place? which option will be faster; with cache on disk or without cache on disk?

cache-on-disk (yes | no; default: no) - whether to store cache files on disk or in RAM filesystem

2nd: In the previous web proxy cache I watched the RAM and the hdd both got the cache objects same time, but in the ver 3 cache I don’t see much cache objects in the RAM. Is there any way to store cache objects only in the RAM to boost the browsing or download speed?

Set

cache-on-disk=none

and

max-cache-size=none

then RAM will be used.
There will not be any magic bust for browsing and downloading.

3rd: what is the Max fresh time?

max-fresh-time (time; default: 3d) - an upper limit on how long objects without an explicit expiry time will be considered fresh

Dear sergejs,

Thank you very much for your helpful reply, I had some confusion now it’s clear.

Thanks again
:smiley:

Dear sergejs,

I think I have to inform you something about the ip proxy setting you describe, when I put (max-cache-size=none) then there are no cache objects stores in the RAM or HDD. But you have told me that if I set (max-cache-size=none) then the cache will be remain in the RAM only but it doesn’t work that way, can you tell me am I doing wrong any where?

Thanks

Make sure you do not have checked ‘Cache Od Disk’ option to yes,
I have tried the same settings with 3.1 version, when Max Cache Size is none and Cache On Disk is disabled.

I got this,

 ip proxy monitor 
                 status: running
                 uptime: 3d14h28m50s
               requests: 4782
                   hits: 124
             cache-used: 0KiB
         total-ram-used: 881KiB

RouterOS proxy cache youtube video ?

And Also what is the default maximum object size. ???