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

OptionDescription
--cache-controlvalue for "Cache-Control" header
--content-dispositionvalue for "Content-Disposition" header
--content-encodingvalue for "Content-Encoding" header
--content-languagevalue for "Content-Language" header
--content-typevalue for "Content-Type" header
--expiresvalue for "Expires" header
--help, -hhelp for add
--recursive, -radd headers recursively (with object prefix only)

Options inherited from parent commands

OptionDescription
--config, -CSpecify an alternate config file [env EXOSCALE_CONFIG]
--output-format, -OOutput format (table|json|text), see "exo output –help" for more information
--output-templateTemplate to use if output format is "text"
--quiet, -QQuiet mode (disable non-essential command output)
--use-account, -AAccount to use in config file [env EXOSCALE_ACCOUNT]

Related Commands

  • headers - Manage objects HTTP headers