Your Ad Here

Home Articles | Tutorials | Troubleshooting | Tweaks | Windows Server 2012 | Subsribe to RSS Feed Subscribe to RSS Affiliated sites

Follow me  Follow gusac on Twitter  Subscribe  Email  Subscribe to RSS


Your Ad Here

Disable Web Caching for a specific website in Threat Management Gateway

25.May.2011 | by Gusac | Filed in: Articles, Tutorials

Forefront Threat Management Gateway can be configured to maintain a cache of Web objects and to attempt to fulfil Web requests from the cache. The Web caching is disabled by default. When you configure it, it starts caching all the website based on the criteria.

However, there could be scenario where you do not want to cache a particular website, say due security concerns or some issue with web application itself. TMG lets you disable the caching for a specific websites. Here are the steps:

    • Go to Web Access Policyin Threat Management Console.

       

    • On the Tasks tab, click on Configure Web Caching

       

image

  • In the new Cache Settings window, click on the tab Cache Rules and then click Newbutton.

     

  • We now have a wizard for creating a new rule, which looks like this:

imageClick to view the screenshot

  • Give the Cache rule name as per your requirements and click on NEXT.

     

  • Next is Cache Rule Destination.In this page we need to enter the destination domain/URL for which we are creating the cache rule. In our example, we are going to disable caching for winplat.net.

     

  • We need to enter the domain name object. If its already created then click on ADDand add the object, else create a new one. In our example, we are going to create a new domain name object:

     

  • For creating a new domain name set, click on Add, then New  and the click New Domain Set Policy Elementdialog box, type a descriptive name for the policy element that will represent the domain that you do not want to cache content from.

     

image

  • Once you create a new Domain Set, add it. Here is the screenshot after adding the domain set:

     

image

  • Next is, New Cache Rule Wizard page. Choose the first option: ‘Only if a valid version of the object exists in the cache. If no valid version exists, route the request to the server.’  This rules tells TMG when to go to the web server to get a new copy of the webpage. Click on Next

image

  • Next page is for Cache Content, specifying whether the retrieved content should be cached or not. Since, we are disabling cache here, so we would choose the first option

image

  • Click Next and click on Finish. Once you close the wizard click on APPLY to save the changes.

image