Wednesday, October 26, 2011

.htaccess - page load time - Cut In Half

http://www.kiveo.net/blog/speed-up-your-site/

.htaccess (below)


Also Meet PHP Speedy


--------

HTACCESS stuff:

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">

#Set everything that *probably* isn't dynamically generated to
#be cached by the browser for two weeks

Header set Expires "access plus 2 weeks"

#Unset ETags for everything that *probably* isn't dynamically
#generated

Header unset ETag
FileETag None

</FilesMatch>

# Gzip all text-based files
<FilesMatch ".(php|html|css|js)$">
SetOutputFilter DEFLATE
</FilesMatch>

No comments:

Post a Comment