Forum Discussion

blicket_139557's avatar
blicket_139557
Icon for Nimbostratus rankNimbostratus
May 20, 2014

Unable to Exclude from Web Acceleration cache profile

I'd like to cache static assets and exclude other pages using Web Acceleration profile. But the problem is I can't exlude pages by extension, we don't use. And I can't 'seem to' exclude by path, because the root path (ie /) is the home page. are my assumptions wrong?

 

Our web application does not have any extension for pages. In other words, our pages are not index.htm, info.asp, or contact.js*, ..etc.

 

/ <- page to exclude from cache /info <- page to exclude from cache /about-me <- page to exclude from cache /images/ <- static asset to cache /css/ <- static asset to cache

 

3 Replies

  • is there a way to do that in an Web Acceleration profile or does it have to be an iRule? Are there any examples of this?

     

  • OK, so I was wrong, you can't cache based on content type. Anyway, it looks pretty simple;

     

    Add these to the exclude list;

     

    • /info
    • /about-me

    Add these to the include list;

     

    • /images/.*
    • /css/.*

    Do not think .* relates to file extensions, it doesn't. It's a regular expression with . being any single character and * being zero or more of the preceding element (in this case .)

     

    I'm not quite sure how to handle / based on your requirements. Why exclude that and then specifically exclude /info?