in Web & Tech

htaccess performance boost

# KILL THEM ETAGS
# http://www.askapache.com/htaccess/apache-speed-etags.html
FileETag none

# add entity tag
FileETag MTime Size

# set expires header
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|woff|eot|svg|ttf)$">
   Header set Expires "access plus 1 year"
</FilesMatch>

<ifModule mod_headers.c> 
Header set Connection keep-alive
</ifModule>

Write a Comment

Comment