Forum Discussion
May 17, 2011
cache-control header response
Hello , Is there a way to set to intercept the http header response and set cache-control (i.e. set control-control: private and max-age of 7 days) for ONLY static files specified? ...
hooleylist
Jun 17, 2011Cirrostratus
You can use this example:
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/1178933/showtab/groupforums/Default.aspx1250847
If you're on 9.4.3 or lower, add $:: to the datagroup reference in the matchclass command:
if {[matchclass [HTTP::header Content-Type] equals $::static_content_types_class]}{
Aaron
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