Leverage Browser Caching issues

Permalink 1 user found helpful
I'm having some issues getting my site to allow for leverage broswer caching.

Should my .htaccess file look like this the following?

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On 
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access 1 month"
# Javascript


Also, what should my cache & speed settings be?

Thanks,
Chris

 
Steevb replied on at Permalink Reply
Steevb
This is what I have in my .htaccess:

# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
<FilesMatch "\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
<IfModule mod_expires.c>
# Enable expirations
chrishornick replied on at Permalink Reply
That didn't do anything for me.

The site I'm working on is executive-lodging.com

I'm going to try updating to the latest version of concrete5 and see if that helps.
chrishornick replied on at Permalink Reply
Updating concrete5 didn't do a thing for me. I tried modifying the .htaccess on two other sites I run with concrete5 and it really helped out. This one seems to have an issue.
Steevb replied on at Permalink Reply
Steevb
Good news.

I usually put that stuff in by default to help with page speed and browser caching.

The C5 rewrite is from turning on pretty url's.

Also depends if the server has the mods in place?
chrishornick replied on at Permalink Reply
I think it must be a server issue. It's the only site that's not hosted by me.
Steevb replied on at Permalink Reply
Steevb
Ask server guys to apply mods