# Disabling forward cache does not work for second view

**URL:** <https://forum.ionicframework.com/t/disabling-forward-cache-does-not-work-for-second-view/49713>\
**Category:** ionic-v1\
**Created:** [April 19, 2016, 4:14am UTC](https://forum.ionicframework.com/t/disabling-forward-cache-does-not-work-for-second-view/49713 "2016-04-19T04:14:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirman99](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@nirman99](https://forum.ionicframework.com/u/nirman99)\
**Post date:** [April 19, 2016, 4:14am UTC](https://forum.ionicframework.com/t/disabling-forward-cache-does-not-work-for-second-view/49713/1 "2016-04-19T04:14:30Z")

</div>

Please see this codepen

> **[MyXYPZ](https://codepen.io/smalwatte/pen/MyXYPZ)**
>
> ...

There are 3 screens. A tab page, two drilldown pages.  
Clicking a item in tab screen navigates to Details screen. Clicking a button in Details screen navigates to Details2 screen.  
When I go back to Details screen from Details2 screen, Details2 screen is removed (ion-view in DOM).  
But the problem is when I go back to tab screen from Details screen, Details screen is not removed and by inspecting elements I can see it is cached. When I clicked an list item in tab screen it simply loads the cached Details screen without creating it.

I have set  
$ionicConfigProvider.views.forwardCache(false); in app.js but no difference.  
How can I remove Cached Details screen when going back to tab screen?  
Please help.  
Tnx

---

<div class="post-metadata">

**Author:** ![nirman99](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@nirman99](https://forum.ionicframework.com/u/nirman99)\
**Post date:** [April 19, 2016, 5:06am UTC](https://forum.ionicframework.com/t/disabling-forward-cache-does-not-work-for-second-view/49713/2 "2016-04-19T05:06:04Z")

</div>

It becomes even worse if I passed a state parameter to Details state when opening Details screen. When going back and forth between list and Details screens, I see nine Details screens are cached (Default max cache is 10, So including list screens it is 10 cached views).  
Any ideas?
