【发布时间】:2018-08-20 22:39:59
【问题描述】:
如何在 yaws 上启用 gzip 压缩?
我有这些信息:
With this patch, Yaws will add 'Accept-Encoding' in 'Vary' header if the
support of gzip compression is enabled or if the response is compressed.
The 'Vary' header can be set using 'yaws:outh_set_vary(Fields)' or by
returning '{header, {vary, Fields}}' from scripts (where Fields is a list
of header names).
问题是我不知道在哪里添加 yaws:outh_set_vary(Fields) 或如何返回 {header, {vary, Fields}}。
【问题讨论】: