Search code examples
httpdeflate

http/1.0 and deflate/gzip


Is http/1.0 able to handle deflated and gzip content? I've finished to implement deflate and gzip in my minimalist web server and I don't really know if browsers with http/1.0 are capable to handle deflate and gzip compressed content.


Solution

  • Well really it's down to the browser; not the protocol (HTTP 1.0 does allow for compression quite happily)

    You should be examining the Accept-Encoding header, which will either be gzip, deflate. If the header isn't there then don't compress.