Project

General

Profile

Actions

Feature #2678

closed

New mod_precompress feature

Added by plantuml over 9 years ago. Updated about 8 years ago.

Status:
Fixed
Priority:
Low
Category:
mod_magnet
Target version:
ASK QUESTIONS IN Forums:

Description

The existing mod_compress is a nice feature.
However, it would be usefull to let lighttpd serve pre_compress data.

When serving some file (example /foobar.html), rather than compressing foobar.html file in some dedicated directory (compress.cache-dir ), lighttpd could check if (by chance), an existing file foobar.html.gz in the same folder as foobar.html and serve this file instead (with the right HTTP content-encoding header).

Pros:
- you won't have to clean the compress directory
- since data are precompressed, you save some CPU on first request
- you can use Zopfli (https://github.com/google/zopfli) compression algorithm (which gives better compression ratio).

Cons:
- You have to precompress the data

Depending on their need, people could choose to use either mod_compress, mod_defate or mod_precompress.

Any chance to have such feature ?

Thanks!


Files

content-negotiation.lua (7.58 KB) content-negotiation.lua gstrauss, 2017-02-14 06:20

Related issues 2 (0 open2 closed)

Related to Feature #2736: Test $HTTP["language"] for preferred language?Fixed2016-07-18Actions
Related to Feature #1259: mod_autoext - Apache-like support for automatically adding extensionsFixedActions
#1

Updated by stbuehler over 9 years ago

  • Category deleted (mod_compress)
#5

Updated by gstrauss almost 9 years ago

  • Category set to 3rd party
#7

Updated by gstrauss about 8 years ago

  • Related to Feature #2736: Test $HTTP["language"] for preferred language? added
#8

Updated by gstrauss about 8 years ago

  • Category changed from 3rd party to mod_magnet
  • Target version set to 1.4.46
#9

Updated by gstrauss about 8 years ago

#10

Updated by gstrauss about 8 years ago

  • Related to Feature #1259: mod_autoext - Apache-like support for automatically adding extensions added
Actions

Also available in: Atom