Rules  1  2  3  4  5  6  7  8  9  10  11  12  13  14 
Rule 3 - Add an Expires Header
 Examples  1  2 

Add a far future Expires header to your components.

Adding an Expires header to your components with a date in the future makes them cacheable, reducing the load time of your pages. Certainly this should be done with images, but that's fairly typical. Go a step further and add it to scripts and stylesheets, too. This won't affect performance the first time users hit your page, but on subsequent page views it could reduce response times by 50% or more.

These two examples each contain a 60K stylesheet and a 68K script. Run the examples and compare the response times.

Read the blog post about this rule: Add an Expires Header

stevesouders.com | contact SteveGreyhound, the 2nd fastest land animalThis is the companion website for High Performance Web Sites by Steve Souders.