Hot to tell cache not to cache .html files?

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

Moderator: Qbik Staff

Hot to tell cache not to cache .html files?

Postby toysareforboys » Jun 16 07 6:49 am

I have Wingate 5.0.1 build 766, setup to be used as a transparent proxy. I have 300 gigs of cache, but there gets to be a problem where it's caching the .html files and not checking for newer ones, just always using the cached ones.

So, i'd like to stop of from caching .htm, .html, .php, etc. How do I do it?

Thanks.

-Jamie M.
toysareforboys
 
Posts: 4
Joined: Jun 14 06 3:33 pm
Location: Toronto, Ontario, Canada

Re: Hot to tell cache not to cache .html files?

Postby Nev » Jun 18 07 8:31 pm

toysareforboys wrote:I have Wingate 5.0.1 build 766, 8<... I have 300 gigs of cache, 8<... -Jamie M.


Hi -Jamie M,

Wow 300Gb!

You can upgrade to the latest version of Wingate with your existing licence, that will probably cure this for you.
--
Nev.
Nev
WinGate Guru
 
Posts: 861
Joined: Sep 22 03 11:35 pm
Location: Mudgee ~ NSW ~ Australia

Postby toysareforboys » Jun 19 07 3:40 am

I would really hate to have to change the version. This setup has been working flawlessly for so long, even with the massive cache, other then the .html problem. So there is no way to add a filter or something to stop it from caching certian file extensions?

Thanks.

-Jamie M.
toysareforboys
 
Posts: 4
Joined: Jun 14 06 3:33 pm
Location: Toronto, Ontario, Canada

Postby jamesc » Jun 19 07 8:34 am

*A few notes regarding 6.2.1 - the concepts should be able to applied to 5.x too.

1. Options shown in red denote how often to check for new version of HTLM or Other files.

Image


2. Example policy not to cache any .htm pages

Image
The changes between version 6.x releases can be reviewed here:
http://www.wingate.com/showfaq.php?faqid=2

Skype: wingatejames
jamesc
Qbik Staff
 
Posts: 928
Joined: Apr 04 05 2:04 pm
Location: Auckland, New Zealand

Postby toysareforboys » Jun 19 07 9:55 am

When I set the filter like you have it in the picture, it still caches everything including htm files. When I remove the "not", then it only caches .htm files and nothing else??

-Jamie M.
toysareforboys
 
Posts: 4
Joined: Jun 14 06 3:33 pm
Location: Toronto, Ontario, Canada

Postby jamesc » Jun 19 07 12:17 pm

When I set the filter like you have it in the picture, it still caches everything including htm files


I would not expect it to - and when creating policies not to cache then all the criterions should be within the same filter.


When I remove the "not", then it only caches .htm files and nothing else??


Correct - after applying that filter only .htm files will be added to the cache (although what was already in there should still be available - if you wanted to purge all .html files from your current cache then create a purging policy).


Let the forum know if you are still having problems.
The changes between version 6.x releases can be reviewed here:
http://www.wingate.com/showfaq.php?faqid=2

Skype: wingatejames
jamesc
Qbik Staff
 
Posts: 928
Joined: Apr 04 05 2:04 pm
Location: Auckland, New Zealand

Postby rboynton » Sep 07 07 6:06 am

I'm having a similar problem. I tried to exclude certain websites from the cache, but the cache is still being used (not seeing updates that I recently made to my website). An example of an exclusion is:

NOT HTTP URL Equals "http://www.radicaldebtelimination.com"

Do I have to make an explicit exclude for each subpage, or will this top level URL do (when it's working correctly)?
rboynton
Senior Member
 
Posts: 156
Joined: Jun 15 07 2:09 am
Location: Boerne, Texas

Postby logan » Sep 07 07 7:59 am

Try changing your policy to:

NOT HTTP URL contains "radicaldebtelimination.com"


A URL consists of a hostname, a port (optional), a path, and a filename.
By making a policy that "equals" only the hostname of a website, any URL's that contain a path and filename will not match the policy and will still be cached.

e.g.
http://www.microsoft.com/en/us/default.aspx

If I made a criterion "NOT HTTP URL equals http://www.microsoft.com/", this website will still be cached because "http://www.microsoft.com/" does not equal "http://www.microsoft.com/en/us/default.aspx".

By changing the criterion to "contains - microsoft.com", you will cover almost all of the microsoft.com website. This also covers connections that navigate to the site without using "www." at the begining of the domain.
logan
Qbik Staff
 
Posts: 671
Joined: Oct 19 06 2:49 pm
Location: Auckland, New Zealand


Return to WinGate

Who is online

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