fixed problem with caching in new version of ionic