Appcache gave me too many headaches. Here's an extension to ease the pain.