zafer
Oct 09, 2008Nimbostratus
cache 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