Forum Discussion
zafer
Nimbostratus
Oct 09, 2008cache rule for different age and uri
Hello
here is my code
when HTTP_REQUEST {
if { [ matchclass [HTTP::path] ends_with $::cache_obj] or [ matchclass [HTTP::path] ends_with $::images] } {
CACHE::enable
log local0. "Caching [HTTP::path]"
} else {
CACHE::disable
log local0. "Non Caching [HTTP::path]"
}
}
i want cache images 30 days
.css 15 minutes
.js or url contains get_categories or contains serach.php? 30 minutes
i dont want cache all other domains and
what do i need to change in my config and http profile
zafer
- hoolio
Cirrostratus
Hi Zafer, - zafer
Nimbostratus
is that possible to help me writing this code, i have no experience cache issues.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects