Can you please help me. I have searched high and low regarding this problem and i am unable to find a perfect solution for this.
Say I have 3 views.
Home - which has a really long text. So when a user scrolls to the middle and navigates to another page and when he comes back the scroll position needs to be maintained. So caching is enabled.
A list page - list of something which has an infinite load function to load more items.
A detail page for the list item - Click on an item from the list and this page will be shown with the detail vew of item.
My Problem and Question.
All views have caching enabled. I cant disable it because i need to maintain the scroll position.
List view- detail view - back to list view - now when i navigate again to detail view. I want to clear the cache delete the old caches(i mean the html elements) of the detail view ( but not the others pages )
I tried ionic clearchache and clear history. the problem is clearcache alone is not deleting the html. the cached html is still there. when doing clear history, the elements also get removed but the problem is, all the views are reset.
How to handle this scenario.
I want to remove a single view’s cached data and html before entering that view.
The above example is just to explain my situation, the application i am working on is a bit more complicated.
Any help is much appreciated.
Thanks in advance.