Forum Discussion

Robert_47833's avatar
Robert_47833
Icon for Altostratus rankAltostratus
Mar 20, 2015

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

  • 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 :)

     

  • 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!!!!!!!