Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3635958
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:58:12+00:00 2026-05-19T00:58:12+00:00

Basic Requirements I have a SL app that can be run in-browser or out-of-browser.

  • 0

Basic Requirements

I have a SL app that can be run in-browser or out-of-browser. I want the browser to:

  • Cache the xap file
  • Load the xap from the cache if it has not changed or re-download it if it has changed.

More details

Setting a future expires header obviously solves the caching problem but then I cannot force the user to download the latest version. Normally I would just add a querystring to the url (eg url?v=1) but I cannot do this as this breaks the out-of-browser functionality. eg the app thinks it is not installed when in fact it is.

no cache

If I set Cache-Control to no-cache, Chrome and Firefox correctly send a request to the server for the xap but use the cache if a 304 is returned. IE8 just downloads the file again as does Safari.

must-revalidate

Setting Cache-Control to must-revalidate again works correctly in Chrome and Firefox but Safari always downloads the xap again while IE8 always uses the cache.

How do I set this up to work as described at the start of this question?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:58:12+00:00Added an answer on May 19, 2026 at 12:58 am

    I’m not sure that the Chrome/Firefox is strictly “correct”, you have after all not told the browser that it should cache the content or even that the content is cacheable.

    Instead of no-cache try “Cache-Control: max-age=15” instead. See if that convinces IE that it ought cache the content despite its large size (which is why its not caching it originally).

    For OOB install use the Application object’s CheckAndDownloadUpdateAsync method. Note you need to inform the user to restart the app once an update has been downloaded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok I have a basic iPad app that asks for 5 search/filter criteria from
I have a pretty basic app flow that is quite linear, so it fits
I have a small app that requires some tasks to run in the background.
I have a Django app that lets a user upload a file and does
Basic question here - I have many lines of code that look something like:
I have an .htaccess file that authenticates users against LDAP using mod_auth_ldap . My
I have a HTML+CSS mobile website (not a real app) that is supposed to
Here's our basic requirements: We have a base Rails application, which is being actively
I am working on a multithread app that has about 4 basic Entities at
I have a Spring-MVC, Hibernate, (Postgres 9 db) Web app. An admin user can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.