0

Have a iRule that forces uri's into the cache.

when HTTP_REQUEST {
 if { [HTTP::header "Content-Type"] contains "jpg" } {
    CACHE::enable 

 }
}

Seems this item will be cached forever or until the cache is forcibly emptied. Is there a way we can add an expiry to these items?

flalar
  • 1,181
  • 3
  • 12
  • 23

1 Answers1

1

Based on info at https://clouddocs.f5.com/api/irules/UsingIRulesToManipulateCache.html I guess you can do something like:

when CACHE_REQUEST {
  if { [HTTP::header "Content-Type"] contains "jpg" && [CACHE::age] > 60 } {
    CACHE::expire
  }
}
Ondemannen
  • 19
  • 5