Title: Browser Cache Settings not getting set
Last modified: October 14, 2020

---

# Browser Cache Settings not getting set

 *  Resolved [Andrew Saunders](https://wordpress.org/support/users/aydh/)
 * (@aydh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/browser-cache-settings-not-getting-set/)
 * Hi, I’ve set some of the expiry and security headers, but they’re not coming 
   through.
 * Specifically the expiries aren’t coming through when tested by GTMetrix
 * And
    * Strict-Transport-Security * Content-Security-Policy * X-Content-Type-Options*
   Referrer-Policy aren’t coming through wnen tested by securityheaders.com
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbrowser-cache-settings-not-getting-set%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/browser-cache-settings-not-getting-set/#post-13532876)
 * Hello [@aydh](https://wordpress.org/support/users/aydh/)
 * Thank you for your inquiry and I am happy to assist you with this.
    Have you 
   enabled “Set expires header” and “cache-control header” in Performance>Browser
   Cache? **\* Strict-Transport-Security:** When enabled The time, in seconds (should
   be defined under the “Expires Header Lifetime” box of “Media & Other Files”),
   that the browser should remember that this site is only to be accessed using 
   HTTPS. This only affects the site’s main domain. **\* Content-Security-Policy:**
   This needs to be defined when enabled for what you wan to use Content-Security-
   Policy for like base-URI: etc. **\* X-Content-Type-Options:** This should be 
   working as expected when selected. I’ve tested this and it works just fine. Make
   sure you don’t have any rules in .htaccess or httpd.conf that might conflict.**\*
   Referrer-Policy:** When enabled, you need to select the Directive: for example
   same-origin or no-referrer-when downgrade. I hope this helps! Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Browser Cache Settings not getting set’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/browser-cache-settings-not-getting-set/#post-13532876)
 * Status: resolved