Speed up your site with .htaccess caching

One of the most useful snippets that we’ve found recently is the one below. By using some simple .htaccess file cahing, you can dramatically increase your website speed. This snippet you should always have on your toolbox!

# 1 YEAR
Header set Cache-Control "max-age=29030400, public"
# 1 WEEK
Header set Cache-Control "max-age=604800, public"
# 2 DAYS
Header set Cache-Control "max-age=172800, proxy-revalidate"
# 1 MIN
Header set Cache-Control "max-age=60, private, proxy-revalidate"

Source: http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html

No related posts.

Comments are closed.

Request a Quote
  1. (required)
  2. (valid email required)
 

cforms contact form by delicious:days

Request a Quote