Forum Discussion
acola_114231
Nimbostratus
Jan 28, 2014New to iRules use, help for client browser cache eliminaiton
How can cache-control be managed on the web browser for certain Oracle E-Business pages? Would like to insert in header response for specific pages.
IheartF5_45022
Nacreous
Jan 28, 2014If 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"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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