Forum Discussion
Rise_77519
Nimbostratus
Jun 04, 2014ram cache problem1
Hi, I configured a web acceleration profile with the 600 seconds max age value. when i look at the response from the server ( bigip vs) i see that the cache control max-age value 604800 and also see ...
Jun 11, 2014
Mind that I have not tested this myself and I am currently not in position to do so, but I reckon you can use this method:
https://devcentral.f5.com/wiki/iRules.CACHE__expire.ashx
I imagine you can combine it with a custom header or cookie to set expiration.
Example (not tested or checked for syntax and painfully written on an iphone):
when HTTP_REQUEST {
if { [HTTP:header exists expirecache] } {
set cacheexp 1
}
}
when CACHE_RESPONSE {
if { [info exists cacheexp] && $cacheexp == 1 } {
CACHE::expire
}
}
Note: If you don't want strangers invalidating your cache you might want to filter by ip as well. 🙂
/Patrik
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