Closed ssorallen closed 7 years ago
Maybe this is better done by each application using Chaos by providing a "override-web.xml" config?
@ConnorDoyle Would it be possible for a client like Marathon to provide a jetty-web.xml that gets used by the Jetty server started by Chaos?
Very old issue. Closing.
If a client requests an asset with
Accept-Encoding: gzip
, Chaos should serve a gzipped version of the asset if one exists. Right now Chaos ignores the heading and always serves the uncompressed version.It appears that Jetty supports serving gzipped assets by callingResourceHandler.setMinGzipLength
with a value greater than 0. "1" seems like a reasonable value since every other value is equally arbitrary.This is where the change looks like it should happen: https://github.com/mesosphere/chaos/blob/3a0e435121a51d094923ae1750085d71e346a03b/src/main/scala/mesosphere/chaos/http/HttpModule.scala#L88Edit: The above example was to the wrong "ResourceHandler". Jetty handles Gzip compression with its Gzip Filter.