added html5 appcache support