# this F5 BIG-IP iRule will set the cache-control header for the attached pool, for static Deskpro assets (/assets/*) # edit the max-age value to the cache timer, 84600 is one week # grab the URI so we can use it when the response comes back when HTTP_REQUEST { set HTTP_URI [HTTP::uri] } when HTTP_RESPONSE { # if the URI is for a static asset (/assets/*) if { $HTTP_URI starts_with "/assets/" } { # then set a cache-control header HTTP::header insert cache-control "max-age=86400" } }