views:

59

answers:

2

Hi

As you may well know, it is required to host an access policy (clientaccesspolicy.xml) on your web server if you want SL apps to perform HTTP requests, or you need to host an access server on port 943 for socket connections.

My app makes many short requests and latency is important. I want to know if this access policy file is accessed once for every new HTTP request or is it accessed for the first request and have its result cached on the client. It would be quite costly for me to have two web requests (one for the policy, one for the HTTP GET) for each HTTP request I create.

+1  A: 

One easy way to test this is to use Fiddler and watch for requests to the policy file. The documentation also specifies that the cross-domain policy file is requested only once per application session. This means that the runtime will only request it once and store the result in memory for the silverlight session.

Ray Booysen
A: 

It's accessed on every call, but it does get cached depending on your browser, check fiddler as above comment to understand which calls are cached, cos i'm not sure if HTTPS are cached

Neil
It is not accessed on every call as per the documentation.
Ray Booysen
I think he's suggesting that it's *checked* on every call. The fact that such check doesn't always hit the network is an independent factor.
EricLaw -MSFT-
yes i was, but thanks for the downvote :( at the end of the day silverlight does request it on every call, but the call is cached, as i said in my answer
Neil