Forum Discussion
Cesar1
Nimbostratus
May 10, 2013Different caching policies
Hi
Thanks for the response
4 Replies
- What version of WebAccelerator are you using? This should be achievable in v11 by creating 2 applications with the different policies and using an iRule to select the correct profile based on the URI. Prior to v11 this is not possible a single WebAcceelrator would need to be created with custom nodes based on the URI.
- Cesar1
Nimbostratus
Hi
The version es: 10.2.4 (Build 771,0)
Unable to create a discriminating irule by uri and send it to two different VS a previous version to the 11th?? - afedden_1985
Cirrus
As Dawn said in v10 you need to create custom leaf nodes in the WA policy.
using your example,
- Www.host.com/kkkk/ * -> send to politics 1
- Www.host.com/abcd/ * -> send to politics 2
What do you want to do with these requests? the matching criteria in the WA policy will use mime type and extension to match an existing leaf node in the WA policy. Once you know what policy your matching now you can create another leaf node but add the path for the URI example to add a new leaf node for js and css objects click on the components branch node and then click on Add to add a new leaf node, give it a name and click on create and the new leaf will be added. If you want it to match the css and js objects for your uri /kkkk/ click on the new leaf node, then click on path on the right side. Then in the value(s) box enter /kkkk/. Now you have a leaf node that only matches /kkkk/ next you need to add a parameter. next to the Add button to add parameter click on the arrow to Add a parameter and select content type then click on Add. to match the css and js objects type in includes in the box to the right if Value matches, click the check box to the left of value matches and click on Save. Now you have a leaf node that only matches objects that start with /kkkk/ and have a extension or mime type that matches whats in the includes object type. now you can customize this leaf node by selecting the Acceleration rules menu and there you set Assembly rules and life time rules based on your needs.. I also move the new leaf node up in the branch so it’s above the original includes leaf node so it matches before the includes (just in case there is an order of operations)
that’s how we handle custom caching for specific URIs. - afedden_1985
Cirrus
As Dawn said in v10 you need to create custom leaf nodes in the WA policy.
using your example,
- Www.host.com/kkkk/ * -> send to politics 1
- Www.host.com/abcd/ * -> send to politics 2
What do you want to do with these requests? the matching criteria in the WA policy will use mime type and extension to match an existing leaf node in the WA policy. Once you know what policy your matching now you can create another leaf node but add the path for the URI example to add a new leaf node for js and css objects click on the components branch node and then click on Add to add a new leaf node, give it a name and click on create and the new leaf will be added. If you want it to match the css and js objects for your uri /kkkk/ click on the new leaf node, then click on path on the right side. Then in the value(s) box enter /kkkk/. Now you have a leaf node that only matches /kkkk/ next you need to add a parameter. next to the Add button to add parameter click on the arrow to Add a parameter and select content type then click on Add. to match the css and js objects type in includes in the box to the right if Value matches, click the check box to the left of value matches and click on Save. Now you have a leaf node that only matches objects that start with /kkkk/ and have a extension or mime type that matches whats in the includes object type. now you can customize this leaf node by selecting the Acceleration rules menu and there you set Assembly rules and life time rules based on your needs.. I also move the new leaf node up in the branch so it’s above the original includes leaf node so it matches before the includes (just in case there is an order of operations)
that’s how we handle custom caching for specific URIs.
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
