work on 0.8.9 or greater
add appcache for offline