fixed appCache.update error.
InvalidStateError: Failed to execute 'update' on 'ApplicationCache': there is no application cache to update.