---
title: h2.disable_header_compression
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/tls-and-http/h2-disable-header-compression
---

```
VOID h2.disable_header_compression(STRING resource, STRING ......)
```

**Available in:** recv, hash, hit, miss, pass, fetch, deliver, error

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

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