GuideReference
TrainingSupportCommunity

gzip_​response


Apply gzip compression to speed transfer time. This behavior applies best to text-based content such as HTML, CSS, and Java​Script, especially once files exceed about 10KB. Do not apply it to already compressed image formats, or to small files that would add more time to uncompress. To apply this behavior, you should match on content​_type or the content's cacheability.

OptionTypeDescriptionRequires
behaviorenum

Specify when to compress responses.

{"displayType":"enum","options":["ORIGIN_RESPONSE","ALWAYS","NEVER"],"tag":"select"}
ORIGIN_​RESPONSE

Compress for clients that send an Accept-Encoding: gzip header.

ALWAYS

Always compress.

NEVER

Never compress.