Forum Discussion
Brett_Channon_1
Nimbostratus
Aug 04, 2005writing cache control headers.
Hi all,
I've been looking at some BIGIP info and wondered if anybody knew how easy it was to define/add client cache control headers (such as:Cache-Control: private,max-age=86400,must-revalidate,proxy-revalidate)to outgoing requests from the servers for certain configurable file types.
Some other LTM products out there are able to do it 'out of the box' but somebody told me that the F5 units dont have any method of doing so without some complex Irule writing.
Anybody out there already do it?
Thanks,
Brett
- unRuleY_95363Historic F5 AccountThis is actually a fairly simple iRule (well, as far as iRules go anyway). Now, whether or not something like this should be more easily configured "out-of-the-box" is really a subjective thing. It really depends on how many use cases are likely to do something like that (we haven't come across any yet that have told us). We feel that ultimately, having a powerfully expandable and configurable methodology is better than having just a few capabilities configurable out-of-the-box. Again, this is highly subjective and dependent on just how many instances are doing that "thing".
class my_file_types { ".htm" ".foo" ".bar" }
when HTTP_REQUEST { if { [matchclass [HTTP::uri] ends_with $::my_file_types] } { HTTP::header replace Cache-Control "private,max-age=86400,must-revalidate,proxy-revalidate" } }
- Darryl_Wilson_2
Nimbostratus
Hi, - Colin_Walker_12Historic F5 AccountThere are certainly commands included in iRules to allow you to manipulate the behavior of the RAM-CACHE. Click here
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