Issue with multipart response compression.

Igor Sysoev igor at sysoev.ru
Mon Jan 27 05:50:08 UTC 2014


On Jan 21, 2014, at 9:58 , Makailol Charls wrote:

> Hello
> 
> I use Nginx/1.4.4 as a reverse proxy and my backend webserver generates multipart response with some dynamic boundary.
> 
> I use nginx gzip module to send compress data to the client but it is unable to compress this multipart response which contains dynamic boundary in content_type.
> 
> If I use gzip_type as below, it doesn't work.
> gzip_types     'multipart/mixed';
> 
> If I include boundary in gzip_type, it works fine but boundary is dynamic in my case.
> gzip_types    'multipart/mixed; boundary="Ajm,e3pN"' ;
> 
> Can someone suggest solution for this?


If you can limit these responses in location then

location /uri { 
   gzip_types  *;
   ..
}


-- 
Igor Sysoev
http://nginx.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140127/3c626c1f/attachment.html>


More information about the nginx mailing list