Forum Discussion
Dan_Dumont_1403
Dec 20, 2013Nimbostratus
Rewriting cache headers before they are used by BigIp
So I have a server behind BigIp that's pretty lame about letting me set cache headers... in short: I can't.
So I'd like to try to set the cache headers using an iRule but have them applied before the...
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 "..." }
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects