Forum Discussion
David_Farkas_29
Nimbostratus
Feb 01, 2005Cache persistence on domain name
Under 4.x I've used a very simple cache rule to send requests to a set of caches. However, back in 4.2 PTF6, a 'special' feature was added to allow persistence to a cache based on the level of the ho...
David_Farkas_29
Nimbostratus
Feb 02, 2005Here is the current cache rule I am using in the 4.x:
cache (not (http_host == "xxxx")) {
origin_pool Caches
cache_pool Caches
}
And we are going down to the 2nd level domain (i.e. yahoo.com)
Here is an iRule I came up with. Will it do the same?
when HTTP_REQUEST {
if { [HTTP::host] != "xxxx"} {
pool cache_pool
persist universal [domain [HTTP::host] 2] 86400
} else {
pool cache_pool
persist universal [domain [HTTP::host] 2] 86400
}
}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
