Forum Discussion

Alexei_Fomitche's avatar
Alexei_Fomitche
Icon for Nimbostratus rankNimbostratus
Jun 29, 2006

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.

 

2 Replies

  • Look at one of these solutions and write back if you have any issues:

     

     

    http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=6839

     

    Click here

     

    http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=4856

     

    Click here