Jump to content
Welcome to our new Citrix community!

Enabling Integrated Cache (IC) safely


Recommended Posts

I am wondering how to safely enable Intgrated Cache  IC for LB instance which have many important production service vips.
I would like to enable cache only for one new VIP and restrict rest of vips from any request or response side caching.

 

I have configured this kind of setup for my LB:

 

-Cache content group with default settings:

add cache contentGroup COMPANY-CG 

 

-Policy which checks HTTP GET request towards test.company.com address with certain filetypes which we wanted to be served from IC:

add cache policy company-cache-pol -rule "HTTP.REQ.METHOD.EQ(\"GET\")&&HTTP.REQ.HOSTNAME.EQ(\"test.company.com\")&&( HTTP.REQ.URL.CONTAINS(\".png\") || HTTP.REQ.URL.CONTAINS(\".css\") || HTTP.REQ.URL.CONTAINS(\".js\"))" -action CACHE -storeInGroup COMPANY-CG

 

-Policy which quarantees that anything else is not cached towards VIP by default:

add cache policy nocache-pol -rule true -action NOCACHE

 

-Binding policies with VIP:
bind lb vserver test.company.com-vip -policyName company-cache-pol -priority 100 -gotoPriorityExpression END -type REQUEST
bind lb vserver test.company.com-vip -policyName nocache-pol  -priority 110 -gotoPriorityExpression END -type REQUEST

 

-Global Override policy which quarantees that if request does not include test.company.com anything else is not cached globally in LB:
add cache policy nocache-override-pol -rule "HTTP.REQ.HOSTNAME.EQ(\"test.company.com\").NOT" -action NOCACHE
bind cache global nocache-override-pol -priority 100 -gotoPriorityExpression END -type REQ_OVERRIDE

 

Does this type configuration sound sensible and is it safe to enable IC for our production environment? :)

Do I need to modify  response side IC configurations also? I am little bit confused with Netscaler documentation related to this IC and this request/response side caching.   Documentation is missing configuration examples as usual. 

I would like to keep my setup as simple as possible and maybe later optimize IC settings a step by step.     

For instance I would like serve from cache all request which include following MIME types:

text/html,text/css,text/plain,text/xml,text/javascript,application/x-javascript,application/javascript

 

But I do not know yet how to implement this.   Any tips are welcome. :)

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...