开发者

How to clear the image cache in a Silverlight desktop application

开发者 https://www.devze.com 2023-03-23 19:21 出处:网络
I\'m running a Silverlight out-of-browser desktop application that downloads a bunch of images from an HTTP server.It seems as though Silverlight has a local image cache that it uses for the images, e

I'm running a Silverlight out-of-browser desktop application that downloads a bunch of images from an HTTP server. It seems as though Silverlight has a local image cache that it uses for the images, even across multiple instantiations of the application. If I update an image on the HTTP server, I would like the updated image to be displayed in the Silverlight application, rather than the version of the image stored in the Silverlight image cache. How do I go about clearing the image cache on my machine?

Clearing my web browser's image cache doesn't work here because the Silverlight application is running as an out-of browser desktop application.

Note: I'm not interested in clearing the cache programmatically, I want t开发者_StackOverflow社区o be able to do this by either changing a setting on my machine (to disable the image cache) or deleting a directory where the images are stored.


To clear the Silverlight cache, use the following steps:

1) Start up the Silverlight application of interest

2) Right click anywhere inside the application and click ‘Silverlight’

3) Click on the “Application Storage” Tab

4) Choose the application (website) of interest and click "Delete..."

-or-

4) Click "Delete All" to delete the cache for all Silverlight applications

If you don't want applications to ever cache, clear the "Enable application storage" checkbox, but this is not necessarily recommended.

http://www.microsoft.com/getsilverlight/resources/documentation/AppStorage.aspx


Apparently you are correct. It is broken.

Found this link which may explain the problem and a workaround: Caching of, in, and around your Silverlight application (part 1)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号