better appcache solution