add appcache to webapp manifest, add needed permissions.