PDA

View Full Version : Images not caching between sessions


AshW
04-07-2004, 08:13 AM
This is only happening on some machines and on some sites. It happens on our pages hosting on discountasp.net, as well as the discountasp.net pages themselves (http://discountasp.net)

The problem is that images are not being cached between sessions. Well, they are being cached. They're being saved in the local temporary internet files directory. But if we shut down the browser, restart it, and go to http://discountasp.net again we can see the delay as the images load again, despite being saved in the cache.

This is only a problem in Internet Explorer 6. The caching works fine in current versions of Netscape, Firefox and Opera. The caching also works within a given session. If I change a page and go back to the same page the images load and the page renders instantly. It's only a problem if I close the broswer and then opening it and go to the page again.

I have no idea if this is a server issue, a client issue or an asp.net issue. I've been looking on google and haven't found any information. Any ideas or avenues of enquiry would be appreciated!

blabberblog
04-07-2004, 08:45 AM
This is probably because the browser checks to see if the images have changed or if it should use the cached ones. It does this Once per session. This could explain why it takes a bit longer.

AshW
04-07-2004, 12:00 PM
[b]quote:Originally posted by blabberblog

This is probably because the browser checks to see if the images have changed or if it should use the cached ones. It does this Once per session. This could explain why it takes a bit longer.
</blockquote id="quote"></font id="quote">

Is this specific to ASP.NET? I'm only seeing the delay on ASPX pages, not on any other sites (even other sites with a lot of graphics).

bruce
04-07-2004, 12:48 PM
So if you load the image directly, you do not get delay only when you pull up the whole page?



[b]quote:Originally posted by AshW

[b]quote:Originally posted by blabberblog

This is probably because the browser checks to see if the images have changed or if it should use the cached ones. It does this Once per session. This could explain why it takes a bit longer.
</blockquote id="quote"></font id="quote">

Is this specific to ASP.NET? I'm only seeing the delay on ASPX pages, not on any other sites (even other sites with a lot of graphics).
</blockquote id="quote"></font id="quote">