Forum Discussion
IheartF5_45022
Jan 29, 2014Nacreous
If you want to insert into HTML then you have to collect the response (which is relatively CPU intensive), insert the header and then forward, however there is a much easier way to acheive the same thing using HTTP/1.1 Cache-Control headers;-
when HTTP_RESPONSE {
if {[HTTP::header Content-Type] contains "html"} {
HTTP::header insert Pragma "no-cache"
HTTP::header insert Expires "Fri, 01 Jan 1990 00:00:00 GMT"
HTTP::header replace Cache-Control "no-cache,no-store"
}
}