Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does httpZip determine what files to safely compress?

0
Posted

How does httpZip determine what files to safely compress?

0

There are all sorts of references out there to “smart compression” technologies — our process is very simple and logical. httpZip will only compress what can or should be compressed based on series of tests: • httpZip scans for the Accept-Encoding header in the user’s request (its value must be either GZip or Deflate or both). If present, the process continues. • Top-level MIME type of the would-be response is checked. Is this a top-level MIME type that httpZip is configured to compress? If so, the process continues. • The browser list for the requesting User Agent is reviewed. If there is a match, httpZip checks to see if the browser is listed as being able to handle the would-be request’s top-level MIME type. If yes, the process continues. • The previous two steps are repeated for the MIME sub-type. • If all of these checks have been passed, and there are no exclusions for the request, then httpZip will compress the Web server’s response. The compression settings for top-level and s

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123