Title: W3TC Browser Caching and HTTPS
Last modified: January 28, 2017

---

# W3TC Browser Caching and HTTPS

 *  [bbahov](https://wordpress.org/support/users/bbahov/)
 * (@bbahov)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/w3tc-browser-caching-and-https/)
 * Hello,
 * I’ve been using W3 Total Cache for a long time and had no problems so far. However,
   recently I moved my website from http protocol to https using SSL. Now the browser
   caching of W3TC seems to have stopped working, according to Google’s PageSpeed
   Insights.
    I searched the forums and a bunch of other places on the web but could
   not find a solution. I have enabled the SSL page caching from the settings of
   W3TC but still experience the same issue. Any ideas how to fix this? Any other
   plugins that allow browser caching through https?
 * Thank you!

Viewing 1 replies (of 1 total)

 *  [benoitroubert](https://wordpress.org/support/users/benoitroubert/)
 * (@benoitroubert)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/w3tc-browser-caching-and-https/#post-8899562)
 * Maybe I will be able to help you.
 * W3 Total Cache write all its instructions at the beginning of .htaccess file.
 * We had also this kind of problem because our own instructions in .htaccess for
   the http:// ➜ https:// redirection appeared after W3 total Cache job.
 * So pages were constructed with http:// links if the case you asked the page in
   http:// and not [https://](https://wordpress.org/support/topic/w3tc-browser-caching-and-https/?output_format=md);
   and only after, was switching to [https://](https://wordpress.org/support/topic/w3tc-browser-caching-and-https/?output_format=md).
 * So go see your .htaccess file and put this code below at the beginning of your.
   htaccess file:
 * #######################################################
    # INFOMANIAK ########################################################
   REDIRECT HTTP TO HTTPS TO AVOID DUPLICATE CONTENT # #######################################################
 * RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule (.*)
   [https://www.site.com/$1](https://www.site.com/$1) [R=301,L]
 * ######################################################
 * Hope it will work for you.

Viewing 1 replies (of 1 total)

The topic ‘W3TC Browser Caching and HTTPS’ 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/)

## Tags

 * [browser caching](https://wordpress.org/support/topic-tag/browser-caching/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 1 reply
 * 1 participant
 * Last reply from: [bbahov](https://wordpress.org/support/users/bbahov/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/w3tc-browser-caching-and-https/)
 * Status: not resolved