Is a Windows Phone 7 caching web request in progress?

On Windows Phone 7 Do calls WebClientand HttpWebRequestthe caching system cause, or are they ALWAYS pulled from the Internet?

Also, if I use <Image Source="http://www.images.com/someimage.jpg"/>, is there an image cache or does it retrieve from the Internet all the time when the application loads?

+3
source share
3 answers

HI Jamey,

The WebClient and HttpWebRequest URLs are cached, which causes problems when getting the same URL, but for fresh results. One way is to do something unique in the query string.

Images are not cached, which encourages people to develop solutions for this.

Windows Phone 7" Ben.geek.nz

+3

, .

"cache-control: no-cache"

iis7.5 - .

0

, . JetImageLoader, , , , ..

, ! XAML!

, , ;)

:

  • .
  • , .

:

<Image Source="{Binding ImageUrl, Converter={StaticResource MyAppJetImageLoaderConverter}}"/>

PS I'm sorry that I copy my answer from other questions, but caching images on a Windows phone is a huge problem, and I want to share my solution so that everyone can use it and improve it for the developer community.

0
source

Source: https://habr.com/ru/post/1781537/


All Articles