Forum Discussion
dragonflymr
Jun 07, 2017Cirrostratus
Hi,
Maybe try getfield for that:
if { [HTTP::header "Cache-Control" exists] } {
set new_hdr set new [getfield [HTTP::header "Cache-Control"] "," 1]
HTTP::header replace "Cache-Control" $new_header
}
Not the best code but should work. Probably it would be good to check if there are no multiple instances of Cache-Control header because above code will replace value only in last instance of header.
pro