Forum Discussion
Alexei_Fomitche
Nimbostratus
Jun 29, 2006Header removal in HTTP_RESPONSE
Hello,
I need to do a workaround for Microsoft's bug described in Article 812935
( http://support.microsoft.com/default.aspx?scid=kb;en-us;812935 )
SSL is terminated on the loadbalancer.
I would like to remove "pragma: no-cache" header in the response send to the client.
My idea was to use "HTTP::header sanitize" for specific URLs something like this:
rule remove_pragma_no_cache {
when HTTP_RESPONSE {
if { [HTTP::uri] contains "generate_pdf"} {
set http_headers [HTTP::header names]
for { } { 1 } { } {
set index [lsearch $http_headers "pragma: no-cache"]
if {$index != -1} {
set http_headers [lreplace $http_headers $index $index ]
} else {
break
}
}
HTTP::header sanitize $http_headers
}
}
}
But it does not work.
Does "HTTP::header sanitize" work with HTTP_RESPONSE ?
(there is an article from where I took the code but was used in HTTP_REQUEST)
Does anybody have a suggestion how to solve this ?
Thank you.
Alexei.
- JRahm
Admin
Look at one of these solutions and write back if you have any issues: - Alexei_Fomitche
Nimbostratus
Thank you very much ! This helped !
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