Forum Discussion

waterfall_10467's avatar
waterfall_10467
Icon for Altostratus rankAltostratus
Jan 08, 2013

caching_irule

Hello Team,

 

 

I need an irule to cache. for example; but all requests come to the same vip so I need to seperate the uries through irule

 

caching ages are 300 seconds and sizes are 200 mgbytes

 

1) (http://demofloo.com – html output) is it possible in v 10x if we upgrade to v11x will we be able to cache trough ifile or is there any way ?

 

but if it is not possible we can go on requests I've stayed below

 

2) (.png, .jpg, .jpeg, .gif) ı need to cache these on main page http://demofloo.com

 

(Http Referrer informations “http://demofloo.com for image requests)

 

3) if page starts with this “http://panda.floo.com/assets/

 

fextensions: .htm, .html, .eot, .otf, .svg, .ttf, .woff, .png, .jpg, .jpeg, .gif, .js, .swf, .res, .css, .ico, .axd, .less

 

4) “http://demofloo.com/list/” for without extensions requests

 

5) “http://demofloo.com/img/

 

extensions: .jpeg, .jpg, .gif, .png

 

I'm also writing something for above reguests.However,if you help me about this topic i will be glad so much because this situation is very urgent case for us.

 

Thank you in advance.

 

Kind regards,

 

 

 

3 Replies

  • The examples here might help you along;

     

    -https://devcentral.f5.com/wiki/iRules.CACHE__enable.ashx

     

    -https://devcentral.f5.com/wiki/iRules.CACHE__disable.ashx

     

     

    More details on all cache related commands: https://devcentral.f5.com/wiki/iRules.CACHE.ashx
  • hello ,

     

     

    I am already aware of these . ı had only wanted to learn how to write irule about this. but still thanks

     

  • Regarding 1) check out this thread for a great example of using iFiles, if you still need help, post back; https://devcentral.f5.com/community/group/aft/2165545/asg/50