Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

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.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -