Forum Discussion

David_Farkas_29's avatar
David_Farkas_29
Icon for Nimbostratus rankNimbostratus
Feb 01, 2005

Cache 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 host name (see below). I was wonder if this 'feature' was carried forward in 9.x or is there a iRule that will accomplish the same thing.

 

 

 

 

 

 

 

Here is how the feature works:

 

b internal set cache_uses_host_domain = 0 (default) - makes cache rules use the URI

 

b internal set cache_uses_host_domain = 1 - makes cache rule use 1st level TLD. (i.e. .com, .net, .org, etc.)

 

b internal set cache_uses_host_domain = 2 - makes cache rule use 2nd level domain (i.e. merck.com, yahoo.com, hotmail.com, etc.)

 

b internal set cache_uses_host_domain = 3 - makes cache rule use 3rd level domain (i.e. www.merck.com , ftp.yahoo.com

 

, www.slashdot.org ,etc.)