mod_deflate + file_wrapper

9 views
Skip to first unread message

bc

unread,
Jul 15, 2011, 2:19:06 PM7/15/11
to modwsgi
When adding mod_deflate config to apache, I'm finding that requests
handled by file_wrapper get gzipped, even if they don't match the
filter specification (e.g. images). Here's the config:


AddOutputFilterByType DEFLATE text/html text/plain text/css
application/x-javascript

Requests that are served directly by apache are correct: text is
gzipped, images are not. But requests that hit file_wrapper are always
gzipped, even if they are image/jpeg, or etc.

The content-type returned to the user agent is correct, so I expect
that I'm setting up the file_wrapper call correctly. Here's an example
response header snip cut & paste from chrome webkit dev tools:

Content-Encoding:gzip
Content-Length:3080
Content-Type:image/jpeg

Graham Dumpleton

unread,
Jul 19, 2011, 12:21:44 AM7/19/11
to mod...@googlegroups.com
Sorry for the delay in replying, work sucking up all my free time at the moment.

Is this behaviour when using mod_wsgi embedded mode or daemon mode and
what version of mod_wsgi are you using?

Graham

> --
> You received this message because you are subscribed to the Google Groups "modwsgi" group.
> To post to this group, send email to mod...@googlegroups.com.
> To unsubscribe from this group, send email to modwsgi+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages