Project

General

Profile

[UE] Issues with caching and compression.

Added by TaylorP over 3 years ago

This is my current config related to caching and compression, please let me know if I am doing something wrong

# Caching & Compression
deflate.enabled = "enable" 
deflate.compression-level = 9
deflate.mem-level = 9
deflate.window-size = 15
# deflate.bzip2 only in patch for 1.4.x
deflate.bzip2 = "enable" 
# deflate.allowed_encodings only in 1.5.x
#deflate.allowed_encodings = ( "bzip2", "gzip", "deflate" )
deflate.min-compress-size = 200
#deflate.sync-flush = "enable" 
deflate.output-buffer-size = 4096
deflate.work-block-size = 512
deflate.mimetypes = ("text/html", "text/plain", "text/css", "text/javascript", "text/xml", "image/svg+xml", "application/pdf" )
deflate.debug = "enable" 

The following is the warning messages it produces in the error log.

2021-01-23 07:12:09: configfile.c.1140) WARNING: unknown config-key: deflate.enabled (ignored)
2021-01-23 07:12:09: configfile.c.1140) WARNING: unknown config-key: deflate.mem-level (ignored)
2021-01-23 07:12:09: configfile.c.1140) WARNING: unknown config-key: deflate.window-size (ignored)
2021-01-23 07:12:09: configfile.c.1140) WARNING: unknown config-key: deflate.bzip2 (ignored)
2021-01-23 07:12:09: configfile.c.1140) WARNING: unknown config-key: deflate.debug (ignored)


Replies (7)

RE: Issues with caching and compression. - Added by gstrauss over 3 years ago

server.modules += ("mod_deflate")

Also, please read the mod_deflate documentation.

RE: [UE] Issues with caching and compression. - Added by TaylorP about 3 years ago

I have that module present, but it's imported through the following:

server.modules = (
        "mod_indexfile",
        "mod_alias",
        "mod_redirect",
        "mod_accesslog",
        "mod_openssl",
        "mod_deflate",
        "mod_staticfile",
        "mod_scgi",
)


Let me know if there's a difference or if I need to import it separately like you suggested.

RE: [UE] Issues with caching and compression. - Added by gstrauss about 3 years ago

Let me know if there's a difference or if I need to import it separately like you suggested.

Let me be clear that we're not here to read the documentation to you or to spoon feed you.

Please follow and read the links at the top menubar labelled "Wiki".

You CLEARLY did not follow the link I gave above to read the documentation for mod_deflate. Instead, you appear to have searched this forum and then cut-n-paste deflate.* config from 10+ year old posts for patches that were never released.

Let me be clear: RTFM. Your post history on this site (https://redmine.lighttpd.net/users/12051) is clearly indicative that you consistently fail to read the available documentation before posting questions.

RE: [UE] Issues with caching and compression. - Added by TaylorP about 3 years ago

You just told me to import a module that was already imported when the actual error was that those features have been deprecated and replaced. Get off your high horse mate.

RE: [UE] Issues with caching and compression. - Added by gstrauss about 3 years ago

You seem to have missed the point, or rather your pattern of failing to read the documentation. RTFM.

The crap that you cut-n-pasted from the forum was never part of the official documentation and therefore was never deprecated and never replaced because it was never officially part of lighttpd 1.4. Learn to read better.

RE: [UE] Issues with caching and compression. - Added by TaylorP about 3 years ago

Good talking to you again too gstrauss. Now if you'll excuse me I have a long day of not reading ahead of me tomorrow. In fact tomorrow I think I'll not read some more and file some github tickets, if you can even comprehend this level of humor.

RE: [UE] Issues with caching and compression. - Added by gstrauss about 3 years ago

Let me be clear: RTFM. Your post history on this site (https://redmine.lighttpd.net/users/12051) is clearly indicative that you consistently fail to read the available documentation before posting questions.

Follow the evidence. (<guffaw>)

    (1-7/7)