conditional mod_deflate based on headers
Posted
by Ben K.
on Server Fault
See other posts from Server Fault
or by Ben K.
Published on 2010-05-18T16:28:06Z
Indexed on
2010/05/18
16:31 UTC
Read the original article
Hit count: 232
mod_deflate seems pretty sweet.
I'd love to turn it on across the board for text/html--but for certain pages, I don't want to gzip since upstream proxies need to be able to inspect the content.
I know there's an AddOutputFilterByType directive -- is there any way to combine that w/ a header inspect so that if I see
X-NO-COMPRESS true
I skip mod_deflate?
© Server Fault or respective owner