Hello, I have a problem with a Caddy version 1.0.3, it is altering the content of my Javascript Files. Doing an analysis with firebug I found that Caddy returns in the Response Header the content-type as application/x-gzip, this is the response header:
There might be something there that’s writing the response and not specifying the content type.
Within the gzip handler code there is a comment noting specifically that if the underlying handler does not write a Content-Type, some browsers will assume a content type of application/x-gzip and try to download the file. The gzip handler even attempts to detect the content type (using the Golang http standard library functions) in this event, to try and prevent this.
Hello @Whitestrake, I think you are correct about the underlying handler does not write a Content-Type only for javascript files. See the image attached. I am going to try sending a Content-Type from the application to Caddy and see if this works out.