0

In my application I am using html5 offline caching. I need to clear the appcache programmatically after user sign out (Because the view of the page differs with respect to user role). Is there any way to do this progammatically? I have tried with "updateready" event.

$(this.applicationCache).bind("updateready", function() {
    window.applicationCache.swapCache();
    window.location.reload();
});

But this is not seems to be a good solution because triggering the "updateready" event takes some time. Any help would be appreciated.

Afsal
  • 349
  • 3
  • 10

0 Answers0