By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,277 Members | 1,433 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,277 IT Pros & Developers. It's quick & easy.

Caching js and images on client

P: n/a
is there a way to cache only Javascript and images on the client? it seems
that we are spending most of our time pushing out images and java scripts,
but these never change! so whats the point of loading the same image on
every page? evne though the page content may change the actual image and
scripts dont... is there any performance tips or ways to say catch these
types? such as GIF, JS,JPG, and PNG only? I have IIS 6 and ASP.NET 2.0
btw... thanks!
Jul 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Browsers typically load all cachable data into the cache, so usually
whatever can be cached will be available for the next page request as long
as the users browser is not to set to always download the file each time its
requested.

Also, Asp.net is not responsable for caching images or js files, that
responsibility belongs to the IIS Enable Content Expiration settings. So,
put your images and js files in directories that can be marked with
expiration periods and you should have your client caching pretty much
sorted.

Regards

John Timney (MVP)
"Smokey Grindle" <no********@dontspam.netwrote in message
news:eI**************@TK2MSFTNGP03.phx.gbl...
is there a way to cache only Javascript and images on the client? it seems
that we are spending most of our time pushing out images and java scripts,
but these never change! so whats the point of loading the same image on
every page? evne though the page content may change the actual image and
scripts dont... is there any performance tips or ways to say catch these
types? such as GIF, JS,JPG, and PNG only? I have IIS 6 and ASP.NET 2.0
btw... thanks!

Jul 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.