HTTP Cache & Proxy Web Server

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

Moderator: Qbik Staff

HTTP Cache & Proxy Web Server

Postby JR Africa » Aug 31 12 2:40 am

Hi there

I am trying to determine how i can stop any serverrequest to the proxy from using the Cache.

After looking at the policy setup i cant seem to find anywhere in ServerRequest event that references the Cache. I have also tried to call a policy that stops the Cache from being used but have had no success.

What am i missing here ? Perhaps i should mention that the ServerRequest is setup as a Reverse Proxy.

Many thanks
JR Africa
 
Posts: 39
Joined: Aug 31 12 2:20 am

Re: HTTP Cache & Proxy Web Server

Postby adrien » Aug 31 12 12:15 pm

HI

there are several options.

1. disable the cache module from the service altogether (under filters on the General tab). This is a good option if the particular proxy you're using for reverse proxying isn't used also for forward proxying (you can probably make this so by setting bindings - e.g use a separate proxy for inbound vs outbound).

2. Disable caching in policy. looks like we need to make the cache control item available in the ServerRequest event, but there's a work-around. Using an expression evaluator or script, you can disable it by setting

Session.Cache.Lookup = false
Session.Cache.Add = false

to prevent lookups and additions to cache.

Regards

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

Re: HTTP Cache & Proxy Web Server

Postby JR Africa » Aug 31 12 8:16 pm

Hi Adrien

Many thanks - went with option 2. Added an Expression evaluator post auth. Works perfectly.

As a note : With Caching enabled on a Redirect an issue seems to occur when i use web authenciation and a redirect with multiple pc's on the Lan.

Web authentication worked with the first PC that generated the cache, but any further requests to cache caused a login failure.

However, I am not sure at this point what was causing it - as the sites use AJAX, Jquery (with SHA256 component) & .NET cryptography. Debugging caching would be a nightmare.

Thanks for the resolution.

J
JR Africa
 
Posts: 39
Joined: Aug 31 12 2:20 am


Return to WinGate

Who is online

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

cron