Forum Discussion
Srinivasan_G_31
Nimbostratus
Nov 15, 2012What this iRule does?
Hi,
Would like to know what the following iRule accomplish.
when HTTP_RESPONSE {
HTTP::header replace Pragma public
HTTP::header replace Cache-Control public
}
Srini
5 Replies
- Kevin_Stewart
Employee
Those commands inject/replace the Pragma and Cache-Control headers in the HTTP response to the client, effectively replacing whatever cache controls are being sent by the server (if any). The 'public' designation tells the client browser (and in-path proxies) that the page may be cached. - Srinivasan_G_31
Nimbostratus
Thanks Kevin. So this effectively tells client browser not to cache? - What_Lies_Bene1
Cirrostratus
Quite the opposite. It replaces the header values so that ALL content is cached by proxys, caches and client browsers; regardless of what the origin server has specified. - Srinivasan_G_31
Nimbostratus
Thanks Steve. That clears the air. - hoolio
Cirrostratus
I'd only use that iRule on a virtual server that load balances web servers that only serve static content. You're asking for trouble if there's any user-specific content that you're forcing caching on.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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