Puli
Oct 28, 2009Nimbostratus
How to remove Cache-Control from the header
Hi,
we wanted to remove the Cache-Control from HTTP Response.
using below code but does not work.
I can still see a Status code as 200.
if { [HTTP::uri] == "/.img" } {
set remove_cache_control_header 1
}
when HTTP_RESPONSE {
if { $remove_cache_control_header == 1 and [HTTP::header exists Cache-Control] } {
HTTP::header remove "Cache-Control"
}
}
Can you please suggest