Thanks for you reply Loureiro

I have disabled nginx compression and checked but result is same.

Thanks,
Kingston.s

On Friday, January 23, 2015 at 2:44:57 PM UTC+5:30, Daniel Loureiro wrote:
>
> >I have restarted both servers,But the response is coming like this.
> >
> >    Ҳ�t��₎�U�O�Z�+�x�j����X����R�-
> >�[ϗ��3Y�J{��阧s5���/������7��ߣs>3�N4�9�u!�.G�ThvMg�.rFj@�
> >
> >Am using ngnix with openresty,unicorn and rails 3.2,Please see my request 
> and response headers.
>
> Hi kingston,
>
> maybe I'm wrong but I think that you are compressing the same html 2 
> times: first your Rack compress and send via Puma, then your nginx get this 
> and compress again. The browser only decompress 1 time and think that the 
> result is the final text. Try to disable your ngnix compression and check 
> if in the "Response Header", the "Content-Encoding" will still getting a 
> "gzip" result. Also, for your assets, its better to use the precompiled 
> gzip that Rails produces than compile on-the-fly - this will reduce your 
> server load considerably (check the 4.1.2 item - "GZip Compression": 
> http://guides.rubyonrails.org/asset_pipeline.html#precompiling-assets).
>
> --
> Daniel Loureiro
>


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/9a173786-0e11-43bd-8261-ba4e074f2bab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to