Forum Discussion
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
- What_Lies_Bene1
Cirrostratus
I'm not able to check but can't you configure caching based on Content Type?
- blicket_139557
Nimbostratus
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?
- What_Lies_Bene1
Cirrostratus
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?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com