I have saved my html file into google cloud storage with public read permission. When I am trying to open html file, Chrome automatically downloads the HTML files locally and does not open it in a browser tab.
Html public url is: https://www.googleapis.com/download/storage/v1/b/presentationpublish/o/index_1112q_252_636703629560463983.html?generation=1534766167109567&alt=media
code:
return storage.UploadObject(
bucket: BucketName,
objectName: objectName,
contentType: "text/html",
source: valStream,
options: new UploadObjectOptions { PredefinedAcl = publicRead }
);