View Single Post
Old 09-04-2011, 11:32 PM  
drmadcat
Confirmed User
 
drmadcat's Avatar
 
Industry Role:
Join Date: Jun 2011
Location: in the back room wanking
Posts: 2,024
Quote:
Originally Posted by acctman View Post
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
__________________
asiamoviepass.com
drmadcat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote