ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
193 stars 187 forks source link

Template cache in ionic framework #297

Open kensodemann opened 7 years ago

kensodemann commented 7 years ago

From @swen-xiong on August 16, 2017 8:57

Ionic version: (check one with "x") [ x ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1) [ ] 2.x [ ] 3.x

I'm submitting a ... (check one with "x") [ x ] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

i used ionic framework to build a mobile version of my website (not a compiled add, but a webapp). The problem is that the framework loads (and maybe caches) all html templates in the first request. I'd like to disable it. I used

$ionicConfigProvider.views.maxCache(0);

and, for each state in stateProvider:

url: "/xxx",
cache: false,

but it resolves nothing. When i reset cache in the browser, the first request load all templates. How is it possible? thank you

Copied from original issue: ionic-team/ionic#12679

kensodemann commented 7 years ago

Hello! Thank you for opening an issue with us! Would you be able to provide a sample application via GitHub that demonstrates the issue you are having?

Also, since this is an Ionic V1 issue I am going to move this issue to https://github.com/ionic-team/ionic-v1. Please monitor and provide further updates to the issue over there.

Thanks for using Ionic!