Quote:
Originally Posted by acctman
download this addon to you chrome or ff - http://developer.yahoo.com/yslow/ i test all my sites with it. it taught me to use a lot of caching methods example this is how my htaccess looks on one of my sites. with a good caching method after the user visits once, the next time the visit your site the page load is almost instant. I also use .png files and optimized css files...
Code:
Header unset Pragma
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4)$">
Header set Cache-Control "max-age=3600, must-revalidate"
</FilesMatch>
<FilesMatch "\.(html|htm|txt|xsl|php)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
# CACHED FOREVER
# MOD_REWRITE TO RENAME EVERY CHANGE
<FilesMatch "\.(js|css)$">
Header set Cache-Control "max-age=86400, must-revalidate"
</FilesMatch>
after doing stuff like that on a few sites, it just because a habit and standard. same with my php and mysql coding. i have certain crons that do db cleanup and optimizing tables every few weeks
|
that tool is great better than the firefox one i was useing