• 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

    (@benoitroubert)

    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 https:// ? https:// redirection appeared after W3 total Cache job.

    So pages were constructed with https:// links if the case you asked the page in https:// and not https://; and only after, was switching to https://.

    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 [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.