Open pnorman opened 5 years ago
@pnorman that's for the detailed issue. This looks related to #552.
@pnorman that's for the detailed issue. This looks related to #552.
Yes - fixing all of the issues here should fix #552. It's hard to say which of the spec violations is causing #552, but in general violating the spec can confuse proxies.
Web browsers send
Accept-Encoding: gzip
and Tegola returns compressed data, as it shouldIt also sets content-encoding correctly
Requests which say noting about encoding acceptability are also gzip encoded. This is unusual, but not prohibited. It does make some debugging harder, because it's then behaving differently than other HTTP servers.
Even though it's sending gzipped encoded data, it's not setting
Content-Encoding
. This is non-compliant.If accept-encoding is set and doesn't contain gzip, Tegola sends gzipped data
Tegola ignores the Accepting-Encoding header and always sends gzip-encoded data. The RFC states that tegola SHOULD send a response without any content-encoding (identity encoded), and Tegola violates this. It does set the gzip header correctly.
If Tegola is explicitly told that gzip is not acceptable, it still sends gzip
It does not set the Content-Encoding header, which is non-compliant.
The setting of the Content-Encoding header is new to me - it shows that some parsing of Accept-Encoding is going on.
ref #438