# caching\_irule

**URL:** <https://community.f5.com/t/caching-irule/1226>\
**Category:** Technical Forums\
**Tags:** dev, irules, devops, application-delivery\
**Created:** [January 8, 2013, 8:38pm UTC](https://community.f5.com/t/caching-irule/1226 "2013-01-08T20:38:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![waterfall\_10467](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@waterfall\_10467](https://community.f5.com/u/waterfall_10467)\
**Post date:** [January 8, 2013, 8:38pm UTC](https://community.f5.com/t/caching-irule/1226/1 "2013-01-08T20:38:58Z")

</div>

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](http://beta92735.kliksa.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://demofloo.com)

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

3) if page starts with this “[http://panda.floo.com/assets/](http://delta007.kliksa.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/](http://beta92735.kliksa.com/kategori/)” for without extensions requests

5) “[http://demofloo.com/img/](http://delta007.kliksa.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,

---

<div class="post-metadata">

**Author:** ![What\_Lies\_Bene1](https://avatars.discourse-cdn.com/v4/letter/w/59ef9b/32.png) [@What\_Lies\_Bene1](https://community.f5.com/u/What_Lies_Bene1)\
**Post date:** [January 10, 2013, 1:37pm UTC](https://community.f5.com/t/caching-irule/1226/2 "2013-01-10T13:37:37Z")

</div>

The examples here might help you along;

-[DevCentral](https://devcentral.f5.com/wiki/iRules.CACHE)\_\_enable.ashx

-[DevCentral](https://devcentral.f5.com/wiki/iRules.CACHE)\_\_disable.ashx

More details on all cache related commands: [DevCentral](https://devcentral.f5.com/wiki/iRules.CACHE.ashx)

---

<div class="post-metadata">

**Author:** ![waterfall\_10467](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@waterfall\_10467](https://community.f5.com/u/waterfall_10467)\
**Post date:** [January 18, 2013, 6:43am UTC](https://community.f5.com/t/caching-irule/1226/3 "2013-01-18T06:43:55Z")

</div>

hello ,

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

---

<div class="post-metadata">

**Author:** ![What\_Lies\_Bene1](https://avatars.discourse-cdn.com/v4/letter/w/59ef9b/32.png) [@What\_Lies\_Bene1](https://community.f5.com/u/What_Lies_Bene1)\
**Post date:** [January 18, 2013, 11:45am UTC](https://community.f5.com/t/caching-irule/1226/4 "2013-01-18T11:45:56Z")

</div>

Regarding 1) check out this thread for a great example of using iFiles, if you still need help, post back; [DevCentral - An F5 Technical Community](https://devcentral.f5.com/community/group/aft/2165545/asg/50)
