Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/content/docs/cache/reference/etag-headers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ The Cloudflare network will take the following actions, depending on the visitor
| `br` | GZIP | Decompress GZIP and return uncompressed response to visitor with weak ETag header: `etag: W/"foobar"`. |
| `gzip` | Brotli | Decompress Brotli and return uncompressed response to visitor with weak ETag header: `etag: W/"foobar"`. |
| `gzip` | (none) | Return uncompressed response to visitor with strong ETag header: `etag: "foobar"`. |
| `gzip, br, zstd` | Zstandard | Return zstd-compressed response to visitor with strong ETag header: `etag: "foobar"`.
| `gzip, br` | Zstandard | Decompress zstd and return br response to visitor with weak ETag header: `etag: W/"foobar"`.
| `zstd` | Brotli/GZIP | Decompress zstd and return zstd response to visitor with weak ETag header: `etag: W/"foobar"`. |

</table-wrap>

Expand Down Expand Up @@ -74,9 +77,14 @@ The Cloudflare network will take the following actions, depending on the visitor
| `br` | GZIP | Decompress GZIP and return Brotli-compressed response to visitor with weak ETag header: `etag: W/"foobar"`. |
| `gzip` | Brotli | Decompress Brotli and return GZIP-compressed response to visitor with weak ETag header: `etag: W/"foobar"`. |
| `gzip` | (none) | Compress origin response using GZIP and return it to visitor with weak ETag header: `etag: W/"foobar"`. |
| `gzip, br, zstd` | Zstandard | Return zstd-compressed response to visitor with strong ETag header: `etag: "foobar"`. |
| `gzip, br` | Zstandard | Decompress zstd and return uncompressed response to visitor with weak ETag header: `etag: W/"foobar"`. |
| `zstd` | Brotli | Decompress zstd and return uncompressed response to visitor with weak ETag header: `etag: W/"foobar"`. |

</table-wrap>

Refer to [Content compression](/speed/optimization/content/compression/) for more information.

## Important remarks

* You must set the value in a strong ETag header using double quotes (for example, `etag: "foobar"`). If you use an incorrect format, Cloudflare will remove the ETag header instead of converting it to a weak ETag. 
Expand Down