Forum Discussion
How to ad Cache-Control: no-store and Pragma: no-cache included in the http header for all pages
Hi, to prevent secure pages to store in disk can we use the following iRule to set
Cache-Control: no-store
Pragma: no-cache
when HTTP_RESPONSE {
HTTP::header insert Cache-Control "no-store, no-cache"
HTTP::header insert Pragma "no-cache"
}
3 Replies
- nitass
Employee
the irule looks okay to me. anyway, there is another example in the following articles.
iRule: prevent caching on certain file types by Joe Pruitt
Using iRules To Manipulate Cache
- Kevin_Stewart
Employee
Semantic probably, but I'd use HTTP::header replace here in case a conflicting cache control header already exists in the response.
- Josue_Garcia
Nimbostratus
I am wondering if "replace" create a dependency on what webserver respond with?
Recent Discussions
Related Content
* 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