WebClient in a WP7.1 app called only once

后端 未结 2 1833
陌清茗
陌清茗 2021-01-20 23:27

My problem is:

My WebClient uses a function in the Cloud (http://127.0.0.1:81/Service1.svc/Data).

But it is impossible to call several times (for example to make

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-20 23:39

    I believe web requests are often cached by the emulator (maybe the real phone too).

    Here are a few blog posts that mention this, as well as some solutions:

    • http://www.benday.com/2011/10/06/disable-rest-webrequest-url-caching-on-wp7-mango/
    • http://www.nickharris.net/2010/10/windows-phone-7-httpwebrequest-returns-same-response-from-cache/

提交回复
热议问题