htaccess with wp-super-cache ?
-
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 WordPressbut 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
- The topic ‘htaccess with wp-super-cache ?’ is closed to new replies.