Forum Discussion

SteveEason's avatar
May 26, 2020

Using Policies to insert Cache-Control Headers

We've implemented several rules into a policy which we are applying to our sites to do several functions, like inserting cache-control, pragma and removing X-powered-by, etc. We have a developer who...
  • Ivan_Chernenkii's avatar
    May 26, 2020

    Hello Steve,


    As I understand, you need to use a little bit different rules:

    1. If no "Cache-Control" header, then insert it in response with appropriate values
    2. If "Cache-Control" header exists, then replace its values with your values.

    Thanks, Ivan