h2.disable_header_compression

VOIDh2.disable_header_compressionSTRINGresourceSTRING...

Available inall subroutines.

Sets a flag to disable HTTP/2 header compression on one or many response headers to the client. Field names are case insensitive.

Calling this function will save space in the dynamic table for other, more reusable, headers. Likewise, calling this function will not put sensitive header field values at risk by compressing them.

By default, we disable compression for Cookie or Set-Cookie headers.

Examples

h2.disable_header_compression("Authorization");
h2.disable_header_compression("Authorization", "Secret");

User contributed notes

BETA

Do you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)