All you need for uncompressed asset served from CF edge server is to request the asset without the Accept-Encoding
request HTTP header
with Accept-Encoding
request HTTP header
curl -I -H "accept-encoding: gzip, deflate, br" https://www.cloudflare.com/
HTTP/2 200
date: Thu, 07 Jan 2021 19:02:43 GMT
content-type: text/html; charset=utf-8
set-cookie: __cfduid=d4e9d389f06c4f4a127cf36d2afd4b1e61610046163; expires=Sat, 06-Feb-21 19:02:43 GMT; path=/; domain=.www.cloudflare.com; HttpOnly; SameSite=Lax; Secure
cf-ray: 60dfef494bea4bd0-YUL
age: 47
cache-control: public, max-age=30
strict-transport-security: max-age=31536000
vary: Accept-Encoding
cf-cache-status: HIT
cf-request-id: 077fd3e1cf00004bd037131000000001
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=iDr5cBJe0rnJ2mZr%2B0GMxt0jdyVOVDrkzuEeZaxK9B0QScKH%2BPU6drfJt0W%2BfNXeuDkszfNyDOxHSmyhFWnjKC6%2FKmJfI4GZzuCSGMeGK4iIlASGWC%2BY5Z%2BmM0PE3Cc%3D"}],"group":"cf-nel","max_age":604800}
nel: {"report_to":"cf-nel","max_age":604800}
server: cloudflare
content-encoding: br
without Accept-Encoding
request HTTP header
curl -I https://www.cloudflare.com/
HTTP/2 200
date: Thu, 07 Jan 2021 19:03:53 GMT
content-type: text/html; charset=utf-8
set-cookie: __cfduid=d5cbe2a4b3a6c9e5662438a01fc7c1bbd1610046233; expires=Sat, 06-Feb-21 19:03:53 GMT; path=/; domain=.www.cloudflare.com; HttpOnly; SameSite=Lax; Secure
cf-ray: 60dff0fe2e944bd1-YUL
age: 56
cache-control: public, max-age=30
strict-transport-security: max-age=31536000
vary: Accept-Encoding
cf-cache-status: HIT
cf-request-id: 077fd4f2d900004bd1da944000000001
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=ESH0JA%2FfyZJMDumS4qDMYobxuCQlH4qNZQWg4F%2FpEZ9TClxv8H0UO%2Ffk%2BJ6hWyFL4%2FOA2iiySHiiEsiKQUbu6nq%2BzEHd6bihRm5tCZh9F2yO%2FtAaZzSoeaHMROSOgyk%3D"}],"group":"cf-nel","max_age":604800}
nel: {"report_to":"cf-nel","max_age":604800}
server: cloudflare
the verbose response with Accept-Encoding
request HTTP header
curl -Iv -H "accept-encoding: gzip, deflate, br" https://www.cloudflare.com/
* Trying 2606:4700::6810:7c60:443...
* Connected to www.cloudflare.com (2606:4700::6810:7c60) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: none
* CApath: none
* loaded libnssckbi.so
* ALPN, server accepted to use h2
* SSL connection using TLS_AES_128_GCM_SHA256
* Server certificate:
* subject: CN=www.cloudflare.com,O="Cloudflare, Inc.",L=San Francisco,ST=CA,C=US
* start date: Oct 19 00:00:00 2020 GMT
* expire date: Oct 18 23:59:59 2021 GMT
* common name: www.cloudflare.com
* issuer: CN=Cloudflare Inc ECC CA-3,O="Cloudflare, Inc.",C=US
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x1478810)
> HEAD / HTTP/2
> Host: www.cloudflare.com
> user-agent: curl/7.73.0
> accept: */*
> accept-encoding: gzip, deflate, br
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
HTTP/2 200