[erlang-questions] yaws and deflate

Anthony Shipman als@REDACTED
Fri May 25 21:29:27 CEST 2007


On Friday 25 May 2007 17:31, Jose Antonio wrote:
> Anthony Shipman wrote:
> > I've discovered that a yaws configuration file has undocumented server
> > options such as 'deflate'.  Why is it not documented? Does it not work
> > properly?
>
> http://yaws.hyber.org/yman.yaws?page=yaws.conf
>
> deflate = true | false
>               Turns on or off deflate compression for a server
>
> What is it?
>
> http://carsten.codimi.de/gzip.yaws/
>
>
> Regards

I was looking in the doc/yaws.pdf file which came with the source. It must be 
out of date.

Here's a useful patch:
*** src/yaws_server.erl.orig    Sat May 26 03:37:16 2007
--- src/yaws_server.erl Sat May 26 03:37:37 2007
***************
*** 3409,3414 ****
--- 3409,3416 ----
      true;
  compressible_mime_type("application/x-dvi") ->
      true;
+ compressible_mime_type("application/x-javascript") ->
+     true;
  compressible_mime_type(_) ->
      false.

-- 
Anthony Shipman                    Mamas don't let your babies 
als@REDACTED                   grow up to be outsourced.



More information about the erlang-questions mailing list