Forum Discussion
Cooler_184565
Nimbostratus
Jan 29, 2015Some doubts about iRule to control header
Hi there, I was wondering if you guys could help me with some doubts I'm having with the creation of some iRules to protect some vulnerabilities In this particular case I need to remove Cacheable SSL...
Michael_Jenkins
Cirrostratus
Jan 29, 2015I think you could optimize your code with one of these:
If you always want to have these 3 headers
HTTP::header replace "Cache-Control " "no-cache, no-store, must-revalidate"
HTTP::header replace "Pragma" "no-cache"
HTTP::header replace "Expires" "0"
If you only want to replace ones that exist
if { [HTTP::header exists "Cache-Control"]} { HTTP::header replace"Cache-Control " "no-cache, no-store, must-revalidate" }
if { [HTTP::header exists "Pragma"]} { HTTP::header replace"Pragma" "no-cache"}
if { [HTTP::header exists "Expires"]} { HTTP::header replace"Expires" "0" }Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects