Я пытаюсь создать файл htaccess для своего веб-сайта, а подсказки pageSpeed показали, что есть изображения и один файл css без истечения срока действия.
Я не уверен, с чего начать и как это сделать, у меня есть этот код из учебника онлайн, и мне было интересно, достаточно ли этого для работы.
<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>
Или этот код делает то, что мне нужно?
Спасибо