CrapH
11-14-2008, 07:54 PM
i was playing around with a few ideas and thought i would share one with katz users.
if you have a forum or a website and are plagued by slow load times or a slow host then try this.
if you have a host that allows .htaccess files then this will dramatically speed up your forum for most users.
Step 1 create a new file using notepad++
Step 2 ad the following to the file
# 1 YEAR
<FilesMatch "\.(ico|pdf|flv)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
# 1 WEEK
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(xml|txt|css|js)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</FilesMatch>
# 1 MIN
<FilesMatch "\.(html|htm|php)$">
Header set Cache-Control "max-age=60, private, proxy-revalidate"
</FilesMatch>
Step 3 save file as .htaccess
step 4 upload via ftp in ascii mode to your root directory
and you should notice the speed difference straight away
if you have a forum or a website and are plagued by slow load times or a slow host then try this.
if you have a host that allows .htaccess files then this will dramatically speed up your forum for most users.
Step 1 create a new file using notepad++
Step 2 ad the following to the file
# 1 YEAR
<FilesMatch "\.(ico|pdf|flv)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
# 1 WEEK
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(xml|txt|css|js)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</FilesMatch>
# 1 MIN
<FilesMatch "\.(html|htm|php)$">
Header set Cache-Control "max-age=60, private, proxy-revalidate"
</FilesMatch>
Step 3 save file as .htaccess
step 4 upload via ftp in ascii mode to your root directory
and you should notice the speed difference straight away