Forum Discussion
Using Policies to insert Cache-Control Headers
- May 26, 2020
Hello Steve,
As I understand, you need to use a little bit different rules:
- If no "Cache-Control" header, then insert it in response with appropriate values
- If "Cache-Control" header exists, then replace its values with your values.
Thanks, Ivan
Thank you. I've adjusted our policies based on your information and it appears to have fixed the issues. The policy now has 2 rules, that look like the following.
Rule 1:
Conditions:
HTTP Header full string named 'Cache-Control' does not exist at response time.
Actions:
Insert HTTP Header named 'Cache-Control' with value 'no-cache, no-store, must-revalidate' at response time.
Rule 2:
Conditions:
HTTP Header full string named 'Cache-Control' exists at response time.
Actions:
Replace HTTP Header named 'Cache-Control' with value 'no-cache, no-store, must-revalidate' at response time
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