Forum Discussion
expression for URI compression in LTM
hi,dear F5
I am confused by the expression I should use in http compression profile
suppose I want to compress uri starts with /xyz the real uri maybe /xyx123 /xyz/yy?11.html /xyz12/?11?json.jpg or whatever postfix after /xyz can I use expression /xyz* to fill the URI list portion?
2 Replies
- Hannes_Rapp
Nimbostratus
Hi,
Are you using v11.4 or newer? If so, take a look at LTM Policies - these allow all sorts of flexibility to control caching and compression. Ref: https://devcentral.f5.com/articles/ltm-policy
The solution I'd recommend is creating a LTM policy for enabling your compression profile:
Strategy: Best-Match-
Rule1 Criteria: none
-
Rule1 Action: "Disable"; "Compression"
-
Rule2 Criteria: HTTP URI Path "starts_with"; "/xyz"
-
Rule2 Action: "Enable"; "Compression Your-profile"
Note: before you can use your LTM policy, you need to assign a compression profile to your Virtual Server. Good luck :)
-
- Robert_47833
Altostratus
yes,11.4 or above Hmmmm,policy is ..... a big thing ,need to learn ............. How about my origin question? :) Does /xyz* work?
I tested this for hours,it seems uri list needs to integrated with content list to compse the real URI!!!!!!!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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