What is the name of the domain?
stg-v.jolibox.com
What is the issue you’re encountering
Cloudflare doesn’t compress my js assets
What steps have you taken to resolve the issue?
I check the origin server, if I put accept-encoding, the file is compressed. But if I go through Cloudflare proxy, it doesn’t.
I can make sure this file is definitely larger than the minimum compression threshold and I have created rules that should compress it.
What are the steps to reproduce the issue?
Check https://stg-v.jolibox.com/js/249.7a7bd6841990e91c08ff.js
i40west
December 8, 2024, 11:25pm
2
This is working (compressed) for me.
mbp ➜ ~ % curl -H 'Accept-Encoding: gzip,br,zstd' --include https://stg-v.jolibox.com/js/249.7a7bd6841990e91c08ff.js
HTTP/2 200
date: Sun, 08 Dec 2024 23:22:41 GMT
content-type: application/javascript
vary: Accept-Encoding
last-modified: Sat, 07 Dec 2024 06:23:26 GMT
etag: W/"6753e9de-12afbe"
expires: Thu, 12 Dec 2024 06:47:02 GMT
cache-control: max-age=432000
strict-transport-security: max-age=15552000; includeSubDomains; preload
cf-cache-status: HIT
age: 49
x-content-type-options: nosniff
server: cloudflare
cf-ray: 8ef07fbb6bf47c84-EWR
content-encoding: zstd
alt-svc: h3=":443"; ma=86400
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
It works just asking for brotli, too.
1 Like
system
Closed
December 22, 2024, 7:11am
3
This topic was automatically closed after 15 days. New replies are no longer allowed.