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...
xiangyang_zhang
Nimbostratus
Aug 12, 2005
when HTTP_REQUEST {
if { [HTTP::host] != "xxxxx" } {
pool Caches
set key [crc32 [domain [HTTP::host] 2]]
Make sure persistence record is added for this domain
persist hash $key
} else {
pool Caches
}
if { [string toupper [HTTP::method]] eq "CONNECT" } {
Proxy connect method should continue as a passthru
HTTP::disable
}
}
With this iRule, HTTP::disable only applies to HTTPS traffic, not HTTP traffic. Isn't it ?
If so, no need to issue HTTP::enable (if there is) for HTTP traffic, I guess.
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
