Cache Rules

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Cache Rules

Postby kent2nd » Jul 22 06 5:07 am

Dear Wingate Admin,

i like to asking some question about caching, can i set the rules to accept cache only for image/application/music or else to all URL? it was could do by squid proxy, thats will help much in caching .
thanks
kent2nd
 
Posts: 2
Joined: Jul 22 06 5:01 am

Postby ChrisH » Jul 22 06 7:34 am

Yes, you can set cache rules for images & music files etc. and for everything as well which is by default. There would have to be a fair number of extensions listed for the media files though. You need to create a separate rule for each file extension you want cached. Do this by selecting the Caching option in GateKeeper then select What to cache, select Specify which requests to cache and then select Add filter. Then create a criteria for this filter by selecting Add criterion. Now make sure that The criterion is met if is selected and use the drop down boxes to create the criteria such that you end up with (as an example) HTTP URL ends with .jpg Now create another filter and criterion for each type of file extension you want cached. You may very well end up with 20 or 30 different filters. Let us know if this what you are looking for.
Chris H.
ChrisH
WinGate Master
 
Posts: 388
Joined: Sep 13 03 1:38 am
Location: Canada

Postby kent2nd » Jul 22 06 8:38 am

well, thanks very much...
:) it's works for me better
kent2nd
 
Posts: 2
Joined: Jul 22 06 5:01 am

Postby olaf.krause » Jul 22 06 8:26 pm

That's exactly what I tried but wingate 6.1.4 does not cache something (cache dir stays empty)

Here my filter maybe I did something wrong

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter]

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter0]
"Name"="HTML"
"Description"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter0\Criterion0]
"Name"=""
"Description"="HTTP URL ends with \".html\""
"Type"="CRequestCriterion"
"Comparison"=dword:00000005
"DataIndex"=dword:0000000f
"VariableName"="ends with"
"Not"=dword:00000000
"DataType"=dword:00000002
"dwData"=dword:0040b741
"nData"=dword:0040b741
"dData"=hex:41,b7,40,00,41,b7,40,00
"strData"=".html"

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter1]
"Name"="JPG"
"Description"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter1\Criterion0]
"Name"=""
"Description"="HTTP URL ends with \".jpg\""
"Type"="CRequestCriterion"
"Comparison"=dword:00000005
"DataIndex"=dword:0000000f
"VariableName"="ends with"
"Not"=dword:00000000
"DataType"=dword:00000002
"dwData"=dword:00000000
"nData"=dword:00000000
"dData"=hex:00,00,00,00,00,00,00,00
"strData"=".jpg"

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter2]
"Name"="GIF"
"Description"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter2\Criterion0]
"Name"=""
"Description"="HTTP URL ends with \".gif\""
"Type"="CRequestCriterion"
"Comparison"=dword:00000005
"DataIndex"=dword:0000000f
"VariableName"="ends with"
"Not"=dword:00000000
"DataType"=dword:00000002
"dwData"=dword:74636972
"nData"=dword:52206465
"dData"=hex:69,67,68,74,73,01,00,00
"strData"=".gif"

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter3]
"Name"="HTM"
"Description"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter3\Criterion0]
"Name"=""
"Description"="HTTP URL ends with \".htm\""
"Type"="CRequestCriterion"
"Comparison"=dword:00000005
"DataIndex"=dword:0000000f
"VariableName"="ends with"
"Not"=dword:00000000
"DataType"=dword:00000002
"dwData"=dword:00000001
"nData"=dword:ffff0005
"dData"=hex:01,00,0a,00,43,52,65,63
"strData"=".htm"

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter4]
"Name"="PNG"
"Description"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Cache\CacheFilter\Filter4\Criterion0]
"Name"=""
"Description"="HTTP URL ends with \".png\""
"Type"="CRequestCriterion"
"Comparison"=dword:00000005
"DataIndex"=dword:0000000f
"VariableName"="ends with"
"Not"=dword:00000000
"DataType"=dword:00000002
"dwData"=dword:00000080
"nData"=dword:00ccceb0
"dData"=hex:a0,cd,cc,00,00,00,00,00
"strData"=".png"
olaf.krause
WinGate Master
 
Posts: 211
Joined: Oct 03 03 9:41 pm
Location: Germany

Postby olaf.krause » Jul 22 06 8:49 pm

Now I am confused - wingate caches now but it seems only to cache for one user.

I will stop clean cache and restart - hopefully files froms all user are cached then
olaf.krause
WinGate Master
 
Posts: 211
Joined: Oct 03 03 9:41 pm
Location: Germany

Postby olaf.krause » Jul 23 06 12:04 am

olaf.krause wrote:Now I am confused - wingate caches now but it seems only to cache for one user.

I will stop clean cache and restart - hopefully files froms all user are cached then
Seems to work now, after restart. Is there a possibilty to read out the content of the idx to check what is cached? I did the check by opening the cached file in an (HEX) editor but this is not very comfortable.
olaf.krause
WinGate Master
 
Posts: 211
Joined: Oct 03 03 9:41 pm
Location: Germany

Postby adrien » Jul 23 06 4:57 pm

Hi

There are several cache viewing programs around.

Do a google search for WinGate cache viewer and you get several options.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: Google [Bot] and 7 guests

cron