Closed Jared-Sprague closed 6 years ago
That's really weird! I wonder if cloudflare has an upper limit on filesize for gzipping... it's over 1MB ;)
I figured this out I think: I think since the page is so large cloudflare is using transfer-encoding: chunked
and I read here: https://en.wikipedia.org/wiki/Chunked_transfer_encoding
That if you use that header you can't include a content-length header. I think this is why chrome isn't reporting it. But firefox does:
I think cloudflare is gzipping but chrome is just hiding it.
I was curious what the gziped size of index.html on prod was when minified and even though the content-encoding says gzip the it doesn't look like it's actually compressing it from chrome dev tools: