move appcache content generation to separate clas