Generate and use appcache file.