You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Vizzini Sampere <os...@gmail.com> on 2006/09/28 10:58:35 UTC

[users@httpd] apache 2.0.58 - mod_deflate & mod_disk_cache

I'm having trouble caching the output of mod_deflate using
mod_disk_cache.  I've found casual references to the combination
working, but I haven't found a working example of it.

After emptying the "CacheRoot" of all files and flushing the cache on
FF, I load '/demo/index.html' with FF. FF Page Info (under tools menu)
shows a size that is clearly the compressed form of index.html.
However, CacheRoot now contains
'/j5p/I7E/m1Z/uNF/9HO/RTigTcw.{data,header}', both are plain text
uncompressed.

What part(s) of the puzzle am I missing? I've also tried
'SetOutputfilter DEFLATE' instead of 'AddOutputFilterByType' with no
luck.

Any help or hints folks can provide would be greatly appreciated.

-Vizzini

relevant httpd.conf lines

LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so

<Location /demo>
        Options +MultiViews
        AddOutputFilterByType DEFLATE text/html
        # SetOutputfilter DEFLATE
        Header append Vary User-Agent env=!dont-vary
</Location>

CacheRoot "/var/www/mod_disk_cache/"
CacheSize 5000000
CacheEnable disk /demo/
CacheDirLevels 5
CacheDirLength 3


# apache2 -V
Server version: Apache/2.0.58
Server built:   Aug 18 2006 15:35:07
Server's Module Magic Number: 20020903:12
Server loaded:  APR 0.9.12, APR-UTIL 0.9.12
Compiled using: APR 0.9.12, APR-UTIL 0.9.12
Architecture:   32-bit
Server compiled with....
  -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
  -D HTTPD_ROOT="/usr"
  -D SUEXEC_BIN="/usr/sbin/suexec2"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
  -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org