Results 1 to 2 of 2

Thread: How to clear cache when updating an application

Hybrid View

  1. #1
    Frenzied Member
    Join Date
    Jan 01
    Location
    Denmark
    Posts
    1,045

    How to clear cache when updating an application

    How do I force a control+F5 (deleting cache) when updating an application? The users will not do this so I need to force this. Can we use some kind of flush method checking version or...?
    Any ideas?

  2. #2
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,738

    Re: How to clear cache when updating an application

    Hello,

    This is a client side operation, so this is not something that you can initiate from the server.

    The best suggestion would be to provide online guidance to your user that they need to do this.

    Failing that you can look into setting correct cache expiry settings on each of the items that you are sending to the client, in order to prevent the browser from caching it, however, the browser works very hard to aggressively cache everything that it can, so you would have to get very low level in order to enforce this.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •