Forum Discussion
John_Alam_45640
Dec 20, 2013Historic F5 Account
You could add these header to the http response as the server serves them and the bigIP forwards them.
At HTTP_REQUEST you identify the objects, at HTTP_RESPONSE you add the header. THis happens the first time the object is served. After the first time, the cache responds with the object, and HTTP_RESPONSE does not trigger.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/xyz" } { set insert_hdrs "yes" }
}
when HTTP_RESPONSE {
if { $insert_hdrs equals "yes" } { HTTP::header insert cache-control value "..." }
}