You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2007/09/28 04:39:42 UTC

[Httpd Wiki] Update of "ReInflating" by wrowe

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The following page has been changed by wrowe:
http://wiki.apache.org/httpd/ReInflating

The comment on the change is:
Provide an example for packing-unpacking-repacking gzip

New page:
#FORMAT plain
I've lost decorative text once already, explanations to follow

  LogFormat "%h \"%r\" %>s %b (%O) TE:\"%{Transfer-Encoding}o\" CE:\"%{Content-Encoding}o\" <-- %I AE:\"%{Accept-Encoding}i\" TE:\"%{Transfer-Encoding}i\" CE:\"%{Content-Encoding}i\"" compression

  CustomLog logs/compression.log compression


  Alias /deflated "/path-to/htdocs"
  <Location "/deflated">
      SetOutputFilter DEFLATE
  </Location>

  127.0.0.1 "GET /LICENSE.txt HTTP/1.1" 200 39858 (40146) TE:"-" CE:"-" <-- 412 AE:"gzip,deflate" TE:"-" CE:"-" 
  127.0.0.1 "GET /local/LICENSE.txt HTTP/1.1" 200 10629 (10964) TE:"-" CE:"gzip" <-- 418 AE:"gzip,deflate" TE:"-" CE:"-" 


  ProxyPass /proxy/ http://127.0.0.1/
  ProxyPassReverse /proxy/ http://127.0.0.1/

  127.0.0.1 "GET /LICENSE.txt HTTP/1.1" 200 39858 (40146) TE:"-" CE:"-" <-- 501 AE:"gzip,deflate" TE:"-" CE:"-" 
  127.0.0.1 "GET /proxy/LICENSE.txt HTTP/1.1" 200 39858 (40146) TE:"-" CE:"-" <-- 418 AE:"gzip,deflate" TE:"-" CE:"-" 
  127.0.0.1 "GET /deflated/LICENSE.txt HTTP/1.1" 200 10629 (10964) TE:"-" CE:"gzip" <-- 510 AE:"gzip,deflate" TE:"-" CE:"-" 
  127.0.0.1 "GET /proxy/deflated/LICENSE.txt HTTP/1.1" 200 10629 (10964) TE:"-" CE:"gzip" <-- 427 AE:"gzip,deflate" TE:"-" CE:"-" 


  ProxyPass /proxy/nodeflate/ http://127.0.0.1/deflated/
  <Location "/proxy/nodeflate/">
      RequestHeader unset Accept-Encoding
  </Location>

  127.0.0.1 "GET /deflated/LICENSE.txt HTTP/1.1" 200 39858 (40169) TE:"-" CE:"-" <-- 479 AE:"-" TE:"-" CE:"-" 
  127.0.0.1 "GET /proxy/nodeflate/LICENSE.txt HTTP/1.1" 200 39858 (40169) TE:"-" CE:"-" <-- 428 AE:"-" TE:"-" CE:"-" 


  FilterProvider gzinflate INFLATE resp=Content-Encoding $gzip

  ProxyPass /proxy/reinflate/ http://127.0.0.1/deflated/
  <Location "/proxy/reinflate/">
      FilterChain gzinflate
  </Location>

  127.0.0.1 "GET /deflated/LICENSE.txt HTTP/1.1" 200 10629 (10964) TE:"-" CE:"gzip" <-- 510 AE:"gzip,deflate" TE:"-" CE:"-" 
  127.0.0.1 "GET /proxy/reinflate/LICENSE.txt HTTP/1.1" 200 39858 (40219) TE:"chunked" CE:"-" <-- 428 AE:"gzip,deflate" TE:"-" CE:"-" 


  FilterProvider ucase CaseFilter Content-Type $text/

  ProxyPass /proxy/ucase/ http://127.0.0.1/deflated/
  <Location "/proxy/ucase/">
      FilterChain +gzinflate +ucase
  </Location>

  127.0.0.1 "GET /deflated/LICENSE.txt HTTP/1.1" 200 10629 (10964) TE:"-" CE:"gzip" <-- 511 AE:"gzip,deflate" TE:"-" CE:"-"
  127.0.0.1 "GET /proxy/ucase/LICENSE.txt HTTP/1.1" 200 10616 (10951) TE:"-" CE:"gzip" <-- 425 AE:"gzip,deflate" TE:"-" CE:"-"

** Note bug; adding gzinflate, and not deflate, still results in re-deflation.
** Adding +DEFLATE explodes things horribly.  That response is;

  127.0.0.1 "GET /proxy/ucase/LICENSE.txt HTTP/1.1" 200 120818 (121179) TE:"chunked" CE:"-" <-- 424 AE:"gzip,deflate" TE:"-" CE:"-"

also up-cased, but repeating text cyclicly (see the response size).