exo storage headers add
Description
This command adds response HTTP headers to objects.
Example:
exo storage headers add sos://my-bucket/data.json \
--content-type=application/json \
--cache-control=no-store
Note: adding an already existing header will overwrite its value.
Supported output template annotations: .Path, .Bucket, .LastModified, .Size, .ACL, .Metadata, .Headers, .URL
exo storage headers add sos://BUCKET/(OBJECT|PREFIX/) [flags]
Options
Option | Description |
---|---|
--cache-control | value for "Cache-Control" header |
--content-disposition | value for "Content-Disposition" header |
--content-encoding | value for "Content-Encoding" header |
--content-language | value for "Content-Language" header |
--content-type | value for "Content-Type" header |
--expires | value for "Expires" header |
--help, -h | help for add |
--recursive, -r | add headers recursively (with object prefix only) |
Options inherited from parent commands
Option | Description |
---|---|
--config, -C | Specify an alternate config file [env EXOSCALE_CONFIG] |
--output-format, -O | Output format (table|json|text), see "exo output –help" for more information |
--output-template | Template to use if output format is "text" |
--quiet, -Q | Quiet mode (disable non-essential command output) |
--use-account, -A | Account to use in config file [env EXOSCALE_ACCOUNT] |
Related Commands
- headers - Manage objects HTTP headers