Forum Discussion
Morten_Marstran
Jun 07, 2017Nimbostratus
Regarding Piotr's comment on checking for multiple instances of "Cache-Control", you could use HTTP::remove and then HTTP::insert, like this:
if { [HTTP::header "Cache-Control" exists] } {
set new_header [getfield [HTTP::header "Cache-Control"] "," 1]
HTTP::header remove "Cache-Control"
HTTP::header insert "Cache-Control" $new_header
}