locked
How to clear iframe app cache? on Windows 8.1

    Question

  • Hi

    i am working on app for Windows 8.1 PC's and tablets.

    The App host IFrame tag that navigates to an external site. the reason i am doing it is because this site is using HTML5 AppCache and this is the only way for me to get this functionality working.

    1. One of the feature we need to add is clearing the app cache so users can start clean. 

    i cannot find the way to clear it.

    2. This site is also using local db which will need to be cleaned through the App and not the Site how can i remove the iframe local DB?

    thanks in advanced

    Eyal

    Sunday, June 08, 2014 12:55 PM

Answers

  • Hi Eyal,

    Not familiar with that, seems using ApplicationCache object can help you do this, for instance swapCache or update could be used to update something or remove something. I do not see there is a clear function. (Win8.1 App use IE11 render engine, if IE can so this, Windows Store App can also do this)

    However could clearCache function for WinJS.UI.Fragmentsbe another solution? This API removes any cached info about the specified fragment. and the method doesn't unload any scripts or styles that are referenced by the fragment. Not sure if this can be a suggestion.

    And how to clean the local db through the App, could you execute some SQL to clean the data?

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Monday, June 09, 2014 6:16 AM
    Moderator