Alexei_Fomitche
Jun 29, 2006Nimbostratus
Header 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.