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? ...
I really doubt if this would be possible... the user normally has to visit his homepage and click on the resources to open in a new window.
Prabhu
- Hi DarkSide,
when HTTP_REQUEST { Check if the User-Agent header if {[HTTP::header User-Agent] contains "some user-agent string"}{ Send a 503 response with a Retry-After header set to 5 minutes Don't include the Server: BigIP header (noserver) Retry-After described in: http://tools.ietf.org/html/rfc2616section-14.37 HTTP::respond 503 noserver "Retry-After" 300 } }
- DarkSideOfTheQ_Jul 15, 2010
Nimbostratus
Hi Hoolio, - When you say it doesn't work, do you mean that the Retry-After header isn't set in the response? Else, can you try testing with curl from the LTM command line:
when HTTP_REQUEST { HTTP::respond 503 noserver Retry-After 3 }
- DarkSideOfTheQ_Jul 15, 2010
Nimbostratus
When I tried to use "Retry-After" 10800 the LTM threw an error when creating the new iRule, so I changed that to "Retry-After:10800" and it accepted it. - DarkSideOfTheQ_Jul 15, 2010
Nimbostratus
Excellent!!!
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