ide
ide

Reputation: 20788

Removing x-goog headers from Google Cloud Storage responses

The response headers for an object stored in a Google Cloud Storage bucket include Google-specific headers like x-guploader-uploadid, x-goog-generation, and x-goog-storage-class. The GCP console doesn't appear to have a way to disable these headers. Is there some other way built into GCS to remove the Google response headers?

Upvotes: 0

Views: 1779

Answers (1)

John Hanley
John Hanley

Reputation: 81366

There are two APIs: XML and JSON.

AFAIK only the XML API provides those extension headers. The JSON API does not. You cannot control which headers are returned in HTTP responses. Some of those headers can be used in request header match conditions.

The headers are documented here:

Upvotes: 2

Related Questions