fixed appCache.update error.
InvalidStateError: Failed to execute 'update' on 'ApplicationCache': there is no application cache to update.
Merge pull request #200 from softcup/master

fixed appCache.update error.