6ecabe1 appcache and some other bug fixes