lighttpd mod_deflate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lighttpd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello,
Im using lighttpd in combination with mod_deflate to reduce traffic load.
using this config here:
server.modules += ("mod_deflate")
# new deflate:
deflate.mimetypes = ("text/")
deflate.
deflate.cache-dir = "/var/cache/
cache.disk.etag = "/var/cache/
deflate.
deflate.
deflate.params = (
"BROTLI_
"BROTLI_
"BROTLI_
"ZSTD_
"gzip.level" => 9,
"gzip.memLevel" => 9,
"gzip.strategy" => 0,
)
- etag header is set and enabled by etag.use-size = "enable".
- Cache-Control header is on "public".
- Config doesnt complain about errors,
- mime types are correctly mapped by using include_shell "/usr/share/
But the cache in /var/cache/
> cache.disk.etag = "/var/cache/ lighttpd/ compress/ cache_etag"
What is that? Where did it come from? Perhaps some third-party module?
That directive does not exist in the official lighttpd source upstream.
If things are not working for you, you should remove *all* optional settings and focus on getting things working before adding tuning settings. These are all optional and you should probably prefer the lighttpd defaults: max-compress- size = 131072 min-compress- size = 0
```
deflate.
deflate.
deflate.params = ( PARAM_QUALITY" => 7, PARAM_LGWIN" => 22, PARAM_MODE" => 0, c_compressionLe vel" => 22,
"BROTLI_
"BROTLI_
"BROTLI_
"ZSTD_
"gzip.level" => 9,
"gzip.memLevel" => 9,
"gzip.strategy" => 0,
)
```
Did you check that `deflate.cache-dir = "/var/cache/ lighttpd/ compress" ` the directory exists and lighttpd has write permission?
Did you test by accessing a simple static file (with mimetype text/*) to see if the cache is filled? Have you checked that you are receiving a compressed response to your test HTTP request, even if the cache is not filled? If you're not receiving a compressed response to your test HTTP request, then mod_deflate is not handling the request for the static file.
Did you read through https:/ /wiki.lighttpd. net/Docs_ ModDeflate and check the Known Limitations section?
> - etag header is set and enabled by etag.use-size = "enable".
You should prefer to use lighttpd defaults unless you have read the lighttpd documentation for etags and really want to change it.
I also do not understand why this is not a forum post asking for assistance. This is unlikely to be a bug in lighttpd.