• After research I found one of the best cache plugins is Wp Super Cache specifically to use with Divi. While I have a small site, I have noticed differences and Pingdom and Gtmetrix have me in the 90’s, yslow shows to expired headers. After doing some digging, it seems that the plugin does add some things but currently this is what it shows:

    ## WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # BEGIN WPSuperCache
    # END WPSuperCache
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    but as far as I know, what I want is this:

    ExpiresActive On
    ExpiresByType image/jpg “access plus 1 year”
    ExpiresByType image/jpeg “access plus 1 year”
    ExpiresByType image/gif “access plus 1 year”
    ExpiresByType image/png “access plus 1 year”
    ExpiresByType text/css “access plus 1 month”
    ExpiresByType application/pdf “access plus 1 month”
    ExpiresByType text/x-javascript “access plus 1 month”
    ExpiresByType application/x-shockwave-flash “access plus 1 month”
    ExpiresByType image/x-icon “access plus 1 year”
    ExpiresDefault “access plus 2 days”

    I am not a coder, but I am not afraid of code and like many things online i have taken the time to fall, get back up and get it right. If someone would be kind enough to comment on this, I would sincerely appreciate it….I dont want to brick my site lol

Viewing 2 replies - 1 through 2 (of 2 total)
  • I need this exact answer as well. I do not find any reference in WP Super Cache to these expiry specifics recommended to put into .htaccess. Expected that the plugin would handle it. My new site is loading so slowly it is unworkable.

    Have a peek at this. This may answer questions. It includes expires.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htaccess with wp-super-cache ?’ is closed to new replies.