Add appcache iframe logic from https://github.com/matthew-andrews/appcache-iframe