How to disable the static object cache for specific page of VPN Vserver

How to disable the static object cache for specific page of VPN Vserver

book

Article ID: CTX465124

calendar_today

Updated On:

Description

Issue following steps one by one in command line mode with admin user

  • unbind vpn vserver VPN_Vserver_Name -policy _cacheVPNStaticObjects
  • add cache policy policyName -rule "HTTP.REQ.URL.PATH_AND_QUERY.STARTSWITH_ANY(\"vpn_cache_dirs\") && !HTTP.REQ.URL.PATH_AND_QUERY.STARTSWITH(\"/vpns/portal/\") && !HTTP.REQ.URL.CONTAINS(\"/vpn/pluginlist.xml\")&& !HTTP.REQ.URL.CONTAINS(\"/The_URI \")" -action CACHE -storeInGroup loginstaticobjects     
          The_URI is the page on which the static object cache will be disabled . Take the Logon page as example, the policy is as following
add cache policy policyName -rule "HTTP.REQ.URL.PATH_AND_QUERY.STARTSWITH_ANY(\"vpn_cache_dirs\") && !HTTP.REQ.URL.PATH_AND_QUERY.STARTSWITH(\"/vpns/portal/\") && !HTTP.REQ.URL.CONTAINS(\"/vpn/pluginlist.xml\")&& !HTTP.REQ.URL.CONTAINS(\"/LogonPoint/tmindex.html\")" -action CACHE -storeInGroup loginstaticobjects
  • bind vpn vserver VPN_Vserver_Name -policy policyName -priority 30 -gotoPriorityExpression END -type REQUEST

Following steps need to be done to enable above setting immediately

  • flush cache contentGroup all
  • re-start client browser