Current time: 11-16-2019, 05:55 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enable browser caching of static assets
01-24-2010, 03:35 AM
Post: #2
RE: Enable browser caching of static assets
The results are kept for ever (at least so far they have been)...

I'd be REALLY surprised if the asp hosting provider didn't let you adjust the expires times for the various mime types and directories but it would probably have to be done through their UI. Same goes for the gzip compression which is pretty critical to get done.

You do have to be careful when you enable caching and make sure you change the names of the files (or query stringg) to make sure when you update something like the logo that people will see the new one and not whatever is in their cache.

There are a few other changes that you can make that will make the site a LOT faster even for a first-time visitor:

- Merge the 4 css files into a single file and the 2 js files into a single one. That will save about 1/2 a second off of the time but more importantly, will take it off of the "start render" time.

- Use image sprites for the images in the "graficos" directory. Google for "spriteme" which can help get it done. That will combine a bunch of the images into a single request. That will save another 2-3 seconds off of the load time.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Enable browser caching of static assets - pmeenan - 01-24-2010 03:35 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)