How to Speed Up my Web site?
# December 29, 2009 at 1:02 pm
There are lots of ways actually.
# January 3, 2010 at 8:26 am
- Optimize your images using a service such as Smushit or PunyPNG[/*:m]
- Enable browser caching of your page items by setting expires headers and cache control via .htaccess[/*:m]
- And loads more![/*:m][/list:u]
am a bit confused by the .htaccess tricks..
Do you just copy and pasteCode:# cache images and flash content for one month
Header set Cache-Control “max-age=2592000”
Header set Cache-Control “max-age=604800”
# cache html and htm files for one day
Header set Cache-Control “max-age=43200”
# implement minimal caching during site development
Header set Cache-Control “max-age=5”
# explicitly disable caching for scripts and other dynamic files
Header unset Cache-Control
# alternate method for file caching
ExpiresDefault A604800 # 1 week
ExpiresByType image/x-icon A2419200 # 1 month
ExpiresByType text/css A2419200 # 1 month
ExpiresByType text/html A300 # 5 minutes
# disable caching for scripts and other dynamic files
In to your .htacess file?
You must be logged in to reply to this topic.