message: When doing concurrent fetch from cache & SPO, if SPO returns 401/403/404, we have to clear cache
diff: @@ -469,6 +469,14 @@ export class OdspDocumentStorageService implements IDocumentStorageService {
  this.ops = ops;
  return id ? [{ id, treeId: undefined! }] : [];
  + }).catch(async (error) => {
  + const errorType = error.errorType;
  + // Clear the cache on 401/403/404 on snapshot fetch from network because this means either the user doesn't have permissions
  + // permissions for the file or it was deleted. So the user will again try to fetch from cache on any failure in future.
  + if (errorType === DriverErrorType.authorizationError || errorType === DriverErrorType.fileNotFoundOrAccessDeniedError) {
  + await this.cache.persistedCache.removeAllEntriesForDocId(this.documentId);
  + }
  + throw error;
  });
  }
  