: Does my origin's gzip compression level matter when it's behind CloudFlare? Today I uploaded a sitemap.xml file to my site, then realised that my server wasn't set up to gzip .xml files. However,
Today I uploaded a sitemap.xml file to my site, then realised that my server wasn't set up to gzip .xml files. However, CloudFlare still gzipped it before sending to my browser.
This got me wondering, does it matter what the gzip level is on my origin? Obviously, if I enable gzip compression, it will speed up the transfer between my origin and Cloudflare, but will it make a difference between the end-user and the Cloudflare datacenter?
The final point I'm trying to get to here is, I'm wondering whether it's worth using Nginx's gzip_static and Zopfli compression on my origin server, or if Cloudflare will recompress my files with a different algorithm.
More posts by @Chiappetta492
1 Comments
Sorted by latest first Latest Oldest Best
Does CloudFlare gzip resources?
Yes, CloudFlare gzips resources that pass through our network. We also gzip items based on the browser's useragent to help speed up page loading time.
If you're already using gzip we will honor your gzip settings as long as you're passing the details in a header from your web server for the files.
Source: support.cloudflare.com/hc/en-us/articles/200168086-Does-CloudFlare-gzip-resources-
To check whether the origin server’s compression level affect the CloudFlare’s compression level to the user/browser, you can check your server’s access log to determine the bytes sent, and the content-length received on your browser.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.