Current time: 11-13-2019, 04:51 PM 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, 11:12 AM
Post: #3
RE: Enable browser caching of static assets
Thanks for your very informative reply.

(01-24-2010 03:35 AM)pmeenan Wrote:  I'd be REALLY surprised if the asp hosting provider didn't let you adjust the expires times...
It is a very basic shared windows hosting plan. They don't seem to give you that kind of level of access to the server configuration. I don't blame them... you know what windows is like.

However, if I put my images onto another domain hosted by linux, it looks easy to configure the cache settings with .htaccess. (I have a few spare domains available at the moment) I think it would be less work than trying to work out if it is possible to configure iis - and at the same time would have the advantage of being cookie free & also make the site more portable for when I eventually rewrite in php.

(01-24-2010 03:35 AM)pmeenan Wrote:  You do have to be careful when you enable caching and make sure you change the names of the files (or query string)...
Thanks for the warning. I'd already figured I'd need to do that when necessary.

(01-24-2010 03:35 AM)pmeenan Wrote:  - Merge the 4 css files into a single file and the 2 js files into a single one.
I'm reluctant to do this with the css for several reasons. One is that I use conditional comments to give IE different css. Also I have one universal sheet for the whole site & then a couple of other sheets that only apply to certain pages. I figured it would be slower on the 1st page that the user loads & then not much different. On the site in general most browsers will only get 1 or 2 style sheets. Perhaps I should do a special sheet for the home page only.

(01-24-2010 03:35 AM)pmeenan Wrote:  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.
That spriteme is amazing! I can't believe what it does! I knew it was possible to do that kind of thing, but couldn't bear the idea of trying to do it by hand. I just wonder about IE compatibility. I need to investigate.

It would obviously make a huge difference.
.
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 - vajra - 01-24-2010 11:12 AM

Forum Jump:


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