PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

Browser Image Caching In IE Does Not Work In Update Panel

 
 
Rain
Guest
Posts: n/a
 
      7th Aug 2008
When the content of the panel is refreshed. The image is reloaded event
though the browser has it in its cache. Does anyone know how to prevent this
happening ?

<asp:updatepanel id="xxx" runat"=server" >
<contenttemplate>

<img src="myImage.gif" alt="" />


</content ..........


 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      7th Aug 2008
when the panel is updated, all the html inside the panel div is re-rendered.,
so the browser re-fetches the image and displays it. use fiddler to check the
cache headers to see why the cache is not used.

-- bruce (sqlwork.com)


"Rain" wrote:

> When the content of the panel is refreshed. The image is reloaded event
> though the browser has it in its cache. Does anyone know how to prevent this
> happening ?
>
> <asp:updatepanel id="xxx" runat"=server" >
> <contenttemplate>
>
> <img src="myImage.gif" alt="" />
>
>
> </content ..........
>
>
>

 
Reply With Quote
 
Rain
Guest
Posts: n/a
 
      7th Aug 2008
Hi Bruce.

Ive never heard of fiddler, I assume its a HTTP Sniffer for which I have
IEWebDeveloper . I have discovered two things since I wrote this.

1.) This is not a problem in IE7. only IE6

2.) using the following code seems to create a cached version in the
document. so that the only time the images are loaded is on the first GET.

myImage = new Image();
myImage.src = "imageURL";

Now I still need to check this in IE6. But if you preload this in the
window.load event, it never has to go back to the server in IE7. I think it
still might be an issue in IE6 but Ill find out tomorrow, if so Ill have to
find another strategy.


Cheers for the help.



"bruce barker" <(E-Mail Removed)> wrote in message
news:478F36F3-8D4B-43C6-B2AD-(E-Mail Removed)...
> when the panel is updated, all the html inside the panel div is
> re-rendered.,
> so the browser re-fetches the image and displays it. use fiddler to check
> the
> cache headers to see why the cache is not used.
>
> -- bruce (sqlwork.com)
>
>
> "Rain" wrote:
>
>> When the content of the panel is refreshed. The image is reloaded event
>> though the browser has it in its cache. Does anyone know how to prevent
>> this
>> happening ?
>>
>> <asp:updatepanel id="xxx" runat"=server" >
>> <contenttemplate>
>>
>> <img src="myImage.gif" alt="" />
>>
>>
>> </content ..........
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image control CACHING IMAGE Suraj Joneja Microsoft ASP .NET 6 7th Feb 2005 09:11 AM
[Update] cam2pc v4.4.5 - Image browser, viewer and image downloader CoMa Freeware 2 8th Nov 2004 03:52 PM
Image swapping and browser caching issues Windows XP Internet Explorer 2 12th Nov 2003 12:28 AM
IE6 SSL and Browser Caching Darren Syzling Windows XP Internet Explorer 0 10th Oct 2003 01:49 PM
Keep browser from caching information DennisLazo.com Windows XP Internet Explorer 2 9th Jul 2003 03:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:24 PM.