I am trying to use mod_filter to setup server-side includes as well as compression. However, I'm observing rather odd behavior. Apache sends the "Content-Encoding: gzip" header, but sends the data uncompressed (causing FireFox to display "Content Encoding Error"). The compression works fine for pages that don't end in .shtml. Below are the relevant bits of my configuration files. I'm ussing Apache 2.2.9. Can anyone offer insights or suggestions? Any help would be greatly appreciated.
AddHandler server-parsed .shtml FilterDeclare ssi FilterProvider ssi INCLUDES handler server-parsed FilterProtocol ssi INCLUDES change=yes FilterChain @ssi FilterDeclare deflate FilterProvider deflate DEFLATE resp=Content-Type /text.*|application.(x-)?javascript/ FilterProtocol deflate DEFLATE change=yes;bytesranges=no FilterChain +deflate -- Daniel Stutzbach, Ph.D. http://www.barsoom.org/ <http://www.barsoom.org/feed> <http://agthorr.livejournal.com/> <http://www.facebook.com/daniel.stutzbach> <http://www.linkedin.com/in/agthorr> <http://www.netflix.com/BeMyFriend/PpZ2BnXBYLDGNcE3EdzH> <http://twitter.com/DanielStutzbach>