...
 |You would be asking for
 |
 |https://exmaple.com/whatever/ls.1
 |
 |and with Accept-Encoding: gzip in the http header, and the
 |webserver would then look if it has a file
 |
 |/whatever/ls.1.gz
 |
 |(instead of without .gz) in its document tree and send you that, with 
 |"Content-Encoding: gzip" http header.

As an outsider i find this thread very amusing.
As you all know the normal approach is to have a cache directory
where some "compress" module performs on-the-fly storage if the
client asks for some file, accepts compression, and the compressed
version yet does not exist.  Funnily i once got not even an answer
when i asked for static compression, since on-the-fly compression
was already available, "so what", i have forgotten which
webserver that has been.  Cleanup via cron anyhow.

Now something for Theo, from the webserver i use.

  #if defined HAVE_ZLIB_H && defined HAVE_LIBZ
  # define USE_ZLIB
  # include <zlib.h>
  #endif
  #ifndef Z_DEFAULT_COMPRESSION
  #define Z_DEFAULT_COMPRESSION -1
  #endif
  #ifndef MAX_WBITS
  #define MAX_WBITS 15
  #endif
  
  #if defined HAVE_BZLIB_H && defined HAVE_LIBBZ2
  # define USE_BZ2LIB
  /* we don't need stdio interface */
  # define BZ_NO_STDIO
  # include <bzlib.h>
  #endif
  
  #if defined HAVE_BROTLI_ENCODE_H && defined HAVE_BROTLI
  # define USE_BROTLI
  # include <brotli/encode.h>
  #endif
  
  #if defined HAVE_ZSTD_H && defined HAVE_ZSTD
  # define USE_ZSTD
  # include <zstd.h>
  #endif
  
  #if defined HAVE_SYS_MMAN_H && defined HAVE_MMAP && defined ENABLE_MMAP
  #define USE_MMAP

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to