SEMRush says none of the CSS or Javascript is Cached or Minified

Permalink
Any clue how to address the warning I keep getting on every C5 website I run through SEMRush's Audit Tool? See attached screenshot...

1 Attachment

barkingtuna
 
mnakalay replied on at Permalink Best Answer Reply
mnakalay
SEMRush knows nothing about C5 cache. If it says files are not cached it means by the browser. That is something you set in your htaccess file, nothing to do with C5.

On your screenshot, it also says files are not compressed. That is also something to set through your htaccess file. It means gzipping is disabled or not set properly for JS and CSS files.

Concerning the files not being minified, Concrete5 only minifies the files that are set to be minified. Anybody using C5 asset management stuff in a package, for instance, can add non-minified code to be loaded and not require for it to be minified.

For this last one, I suggest you check manually (visually to be correct) whether you really do have that many files not minified. Then you'll know where they come from and you might be able to solve the problem.
barkingtuna replied on at Permalink Reply
barkingtuna
I appreciate the response... I added the following and it seems to have helped considerably:

<FilesMatch "\.(ico|xhtml|txt|js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
<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"