I am trying to create a htaccess file for my website and the pageSpeed insights has shown that there are images and one css file without expiration.
I am not sure where to start with this or how to do it, I have this code from a tutorial online and was wondering if this would be enough to work.
<IfModule mod_expires.c>
ExpiresActive On
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresDefault "access plus 1 year"
</FilesMatch>
</IfModule>
Or does this code do what I need it to do?
Thanks