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

  • Home
  • SEARCH
  • 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 285707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:34:15+00:00 2026-05-12T05:34:15+00:00

I have noticed that when updating my web content files (in this case, a

  • 0

I have noticed that when updating my web content files (in this case, a silverlight XAP file) the browser does not detect that the file has been updated, and continues to reads the locally cached file. These files will only be updated rarely, so reading from the cached temporary internet files should occur most of the time.

My question is whether there is a programmatic way to ensure that files are downloaded from the website, rather than read from the local cache, but only when these files have changed? Is there a widely accepted process for handling this scenario? I don’t want every user of this web product to have to delete their temporary internet files when an update is installed.

These files will only be updated during the execution of an installer, so can I possibly programmatically set something to ensure that this will happen?

  • 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-12T05:34:15+00:00Added an answer on May 12, 2026 at 5:34 am

    Lots of programatic solutions so far. The solution however is to simply configure the ClientBin direcotry (or whatever folder you store your XAPs in) on the server.

    Assuming IIS you need to explicitly specify the the ClientBin folder Expires Immediately. This will cause the correct cache configuration headers to be sent when the XAP is retrieved. In turn the browser will attempt to retireve the XAP each time its needed but in the vast majority of cases will simply get a 304 Unmodified response and it can continue to use its cached copy.

    My guess is you are seeing the classic IE heuristic problem. In the absence of any cache configuration headers IE makes up its own mind whether to even bother to re-request a resource according to its own internal algorithms. By ensuring the correct expiry headers are sent IE will honor the servers instructions.

    Edit

    It seems that I need to make the operation of this approach clearer. This approach does not leave the XAP resource uncached and in need of fetching everytime its needed.

    By specifying the Expire Immediately feature in IIS we get these headers in the Response:-

    HTTP/1.1 200 OK
    Cache-Control: no-cache
    Content-Length: 22359
    Content-Type: application/octet-stream
    Last-Modified: Tue, 21 Jul 2009 11:59:28 GMT
    ETag: "fe734cb3fa9ca1:1352"
    

    This does not prevent the XAP from being cached it merely indicates the browser may not used the cached XAP without first requesting it from the server. Note the Last-Modified and ETag headers.

    A subsequent request looks like this:-

    GET /clientBin/SomeApp.xap HTTP/1.1
    If-Modified-Since: Tue, 21 Jul 2009 11:59:28 GMT
    If-None-Match: "fe734cb3fa9ca1:135a"
    Host: myhost.com
    

    The response is:-

    HTTP/1.1 304 Not Modified
    Cache-Control: no-cache
    Last-Modified: Tue, 21 Jul 2009 11:59:28 GMT
    Tag: "fe734cb3fa9ca1:135a"
    

    This response carries no entity body, it gives the browser permission to go ahead and use the existing XAP in the cache.

    If the XAP is large then it is possible that the browser will not actually cache it with the Cache-Control specified as no-cache. Hence it may actually be better to be more explicit.

    Instead of using the Expires Immediately box use configure the Cache-Control header using the Custom header list. Specify:-

    Cache-Control: max-age=0
    

    This will cause the browser to cache large XAPs whilst immediately expirying them.

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

Sidebar

Ask A Question

Stats

  • Questions 266k
  • Answers 266k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer What are some methods you may have used in the… May 13, 2026 at 12:38 pm
  • Editorial Team
    Editorial Team added an answer You've associated a namespace prefix with the document, but your… May 13, 2026 at 12:38 pm
  • Editorial Team
    Editorial Team added an answer You can utilize the VB upgrade wizard, but that will… May 13, 2026 at 12:38 pm

Related Questions

At our shop, we are maintaining roughly 20 Java EE web applications. Most of
I noticed a very interesting finding. I was testing my application involving a custom
TL;DR version: I have two threads. One of them might need to Interrupt() the
I was trying to get the latest ruby on rails for my Mac running

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.