Title: Double Cache Control
Last modified: May 22, 2021

---

# Double Cache Control

 *  Resolved [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years ago](https://wordpress.org/support/topic/double-cache-control-2/)
 * Hello Team,
 * If I add the below cache policy to my .htaccess file it leads to an additional
   cache control in the header alongside the one created by WP Cloudflare Super 
   Page Cache and also the cache test in this case, will fail. But if I remove them
   everything works as expected I can see HIT and cache test succeeded.
 * My question, is it ok to remove the below rules? are these expired headers are
   now handled by WP Cloudflare Super Page Cache? or should I adjust them in a way
   to be more compatible with the plugin.
 * Please advise what is the best practice?
 * Thank you
 *     ```
       # BEGIN CACHE POLICY
       <IfModule mod_expires.c>
       	ExpiresActive On
   
       # Images
       	ExpiresByType image/jpeg "access plus 1 year"
       	ExpiresByType image/gif "access plus 1 year"
       	ExpiresByType image/png "access plus 1 year"
       	ExpiresByType image/webp "access plus 1 year"
       	ExpiresByType image/svg+xml "access plus 1 year"
       	ExpiresByType image/x-icon "access plus 1 year"
   
       # Video
       	ExpiresByType video/webm "access plus 1 year"
       	ExpiresByType video/mp4 "access plus 1 year"
       	ExpiresByType video/mpeg "access plus 1 year"
   
       # Fonts
       	ExpiresByType font/ttf "access plus 1 year"
       	ExpiresByType font/otf "access plus 1 year"
       	ExpiresByType font/woff "access plus 1 year"
       	ExpiresByType font/woff2 "access plus 1 year"
       	ExpiresByType application/font-woff "access plus 1 year"
   
       # CSS, JavaScript
       	ExpiresByType text/css "access plus 1 month"
       	ExpiresByType text/javascript "access plus 1 month"
       	ExpiresByType application/javascript "access plus 1 month"
   
       # Others
       	ExpiresByType application/pdf "access plus 1 month"
       	ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
       	ExpiresDefault "access 2 days"
       </IfModule>
       # END CACHE POLICY
       ```
   
    -  This topic was modified 5 years ago by [shoptak](https://wordpress.org/support/users/shoptak/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years ago](https://wordpress.org/support/topic/double-cache-control-2/#post-14474142)
 * Hi,
    Yes you can remove them and if you also want a proper cache control for 
   your static files, you can simply enable the `Add browser caching rules for static
   assets` option in the plugin settings under the cache tab and it will add the
   necessary cache control for static files as well. Screenshot: [https://i.imgur.com/wNhHCYn.png](https://i.imgur.com/wNhHCYn.png)
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years ago](https://wordpress.org/support/topic/double-cache-control-2/#post-14474432)
 * Thank you [@isaumya](https://wordpress.org/support/users/isaumya/) for your prompt
   help and support!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Double Cache Control’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shoptak](https://wordpress.org/support/users/shoptak/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/double-cache-control-2/#post-14474432)
 * Status: resolved