Force the browser not to cache a specific category using policy

book

Article ID: 165759

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

You can configure the ProxySG appliance to add a cache control header in response packets to the browser to instruct it not to cache the contents. Use the CPL as follows: 

; Policy Rules
<Proxy>
    category=("Government/Legal", "Financial Services") action.Browser_No_Cache(yes) 
 
define action Browser_No_Cache
  set( response.header.Cache-Control, "no-cache, no-store" )
end

 

Notes:

  •     The previous CPL works for HTTP traffic. For HTTPS, add CPL to decrypt the traffic (SSL Interception enabled); otherwise, policy will not match and the CPL does not take effect.
  •     You could modify the previous CPL to cache specific sources, destinations, URLs, and so on.