cancel
Showing results for 
Search instead for 
Did you mean: 

HowTo: Set an HTTP Response Header

Use the http.setResponseHeader() function to set the value of a response header. You can use this function in both request and response rules:

 

# Mask the 'Server' response header  
http.setResponseHeader( "Server", "Unknown web server" );  
  
# Work round browser/proxy bugs and prevent caching  
http.setResponseHeader( "Pragma", "no-cache" );  
http.setResponseHeader( "Cache-Control", "no-cache" );  
http.setResponseHeader( "Expires", "0" );  

 

You can also delete a response header with the http.removeResponseHeader() function.

 

Read More

 

Version history
Revision #:
1 of 1
Last update:
‎02-25-2013 12:48:AM
Updated by:
 
Labels (1)
Tags (1)