Featured post
asp.net - How to setup Silverlight xap caching to work the same in all browsers -
basic requirements
i have sl app can run in-browser or out-of-browser. want browser to:
- cache xap file
- load xap cache if has not changed or re-download if has changed.
more details
setting future expires
header solves caching problem cannot force user download latest version. add querystring url (eg url?v=1
) cannot this breaks out-of-browser functionality. eg app thinks not installed when in fact is.
no cache
if set cache-control
no-cache
, chrome , firefox correctly send request server xap use cache if 304 returned. ie8 downloads file again safari.
must-revalidate
setting cache-control
must-revalidate
again works correctly in chrome , firefox safari downloads xap again while ie8 uses cache.
how set work described @ start of question?
i'm not sure chrome/firefox strictly "correct", have after not told browser should cache content or content cacheable.
instead of no-cache try "cache-control: max-age=15" instead. see if convinces ie ought cache content despite large size (which why not caching originally).
for oob install use application
object's checkanddownloadupdateasync
method. note need inform user restart app once update has been downloaded.
- Get link
- X
- Other Apps
Comments
Post a Comment