Create another post, please
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* – [F,L]
# Enable compression<IfModule mod_deflate.c> <FilesMatch "\.(js|css|php|eot|ttf|otf|svg)$"> SetOutputFilter DEFLATE </FilesMatch></IfModule>
# Control ETags which is thought that bring better performance<IfModule mod_headers.c> Header unset ETag</IfModule>FileETag None
<IfModule mod_headers.c> <FilesMatch "\.(js|css|xml|gz)$"> Header append Vary Accept-Encoding </FilesMatch></IfModule>
<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 ExpiresByType application/javascript "access plus 1 year"
</IfModule>
<IfModule mod_mime.c> AddType application/x-javascript .js AddType text/css .css</IfModule>