Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

mod_deflate is gzipping my png images -- is there anyway t..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Obfuscate HTML document file extension  
Author Message
Michael Stoppelman

External


Since: Apr 12, 2007
Posts: 1



(Msg. 1) Posted: Thu Apr 12, 2007 2:59 am
Post subject: mod_deflate is gzipping my png images -- is there anyway to exclude deflating on mime-type in the body of the file instead of file extension?
Archived from groups: alt>apache>configuration (more info?)

Hi,
I'm trying to get mod_deflate to not compress my images based on the
mime-type (image/png) in the document not the request uri. I currently
have a bunch of servlets that output pngs, but lack a file extension
of .png. So the common idiom of using the following line:

SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

doesn't work for me because my images are at urls like http://abcwebsite.com/photo
and http://abcwebsite.com/makephoto. Is there anyway to match the mime-
type of the content instead of the extension? I was attempting to set
an environment variable in my modpython servlets but I couldn't seem
to get apache to see it.

Version info: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7b DAV/2
mod_python/3.1.4 Python/2.4

Thank you all,
Mike

 >> Stay informed about: mod_deflate is gzipping my png images -- is there anyway t.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
403 on Images - I'm having trouble with my apache server. It seems that my site works fine from anywhere except on the lan. I think this maybe to do with the speed. When I load a page full of images it works fine except when on the lan, on the lan it shows half of them...

Images - Hi, if I load a page from my localhost-Apache, it doesn't show always the complete images. I always have to reload the page many times to see complete images. Maybe I have to config httpd.conf?!? Please help me, .... J. Smart

images - apache 2.0,52 does'nt load some kind of images in my site? why? what can i do to view those images'

gif images issue - I am using webserver Apache/2.0.48 (Unix) + mod_ssl/2.0.48 + OpenSSL/0.9.6i +mod_jk/1.2.5 to serve static content and forwarding servlet requests to tomcat 4.1.27. every thing seems to be working fine, but I am seeing interm gif images problem. like som...

No images anymore - Hi, I friends use to be able to see image i put on mu local apache install via http://iphere/image.jpg No it doesn't work anymore, just get a blank page or no content headers, while html files work fine :/ Any ideas?o yeah Win32DisableAcceptEx doesn't....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]