Clear view cache after logout


#1

Hi,

In my application, when I logout, I’m clearing the localStorage using localStorage.clear();

But after login, if I login with some other means, after sometimes my previous ID details only visible. But after logout, when I clean device RAM and open the app means it shows correct data.

I’m assuming that it is due to cache. How to clear the view cache on logout or on leaving a screen?