Forum Discussion
Wil_Schultz_101
Nimbostratus
Oct 09, 2007irule doesn't work after upgrade...
Hey there, I have the following irule located in the cache example:
http://devcentral.f5.com/wiki/default.aspx/iRules/UsingIRulesToManipulateCache.html
when HTTP_REQUEST {
set ::myti...
Wil_Schultz_101
Nimbostratus
Feb 19, 2008I should have updated a while ago.
It appears as if there was a bug that would allow the F5 to cache these responses in previous versions. We used this iRule to tell the browser to tell the browser to return home but were able to keep the page in cache. This CR got resolved and then we found that the browser would return home and the page would never be in cache.
The current functionality is that the BigIP will follow the last cache-control or pragma header it see's, so to have the same functionality I just added an erroneous header afterwards so it looks more like this:
when HTTP_REQUEST {
set ::mytime [clock seconds]
}
when HTTP_RESPONSE {
HTTP::header insert Last-Modified "[clock format $::mytime -format "%a, %d %b %Y %T %Z"]"
HTTP::header insert Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
HTTP::header insert Cache-Control "post-check=0, pre-check=0, false"
HTTP::header insert Pragma "no-cache"
HTTP::header insert Pragma "dont cache me please"
}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