Nice to know that Joseph Walton’s uber-geeky Unpolluted script to check compression, cacheability and conditional requests on something like an RSS feed gives me a clean bill of health.

Oh, okay: it does now, after I cleaned up after myself by adding

mod_gzip_item_include mime ^application/xml$
mod_gzip_item_include mime ^application/atom\+xml$
ExpiresActive On
ExpiresByType application/xml "access plus 30 minutes"
ExpiresByType application/atom+xml "access plus 30 minutes"

to my .htaccess file. Oddly enough, when I tried the other Google-recommended way of telling mod_gzip to add things, file \.xml$, it ignored me. Dunno why.


Comment by Jacques Distler #
2004-09-12 19:59:12

With mod_deflate (Apache 2.0), the syntax looks like

<IfModule mod_deflate.c>
DeflateFilterNote ratio
DeflateCompressionLevel 5
 AddOutputFilterByType DEFLATE text/* application/xhtml+xml application/xml 
    application/postscript image/svg+xml

I thought mod_gzip looked similar, but it’s been a long time …

Comment by Phil Ringnalda #
2004-09-12 20:10:38

It may very well look quite similar: I was only looking for what I needed to add in .htaccess to the existing support for mod_gzip that mine host has in httpd.conf, so that it would compress my feeds. Guess I should go looking for the proper docs, since they’re horrible to find at the moment, and in need of some linky-love.

Comment by Scott Johnson #
2004-09-25 03:36:11


I ran into the same problem with the filename-based filters, but thanks to your docs here, I was able to easily get green all across the Unpolluted board on my feeds. Sweet. :-D

Name (required)
E-mail (required - never shown publicly)
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <del datetime="" cite=""> <dd> <dl> <dt> <em> <i> <ins datetime="" cite=""> <kbd> <li> <ol> <p> <pre> <q cite=""> <samp> <strong> <sub> <sup> <ul> in your comment.