>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/02a0932e-9d55-4cdf-8e47-ebd0ba19598e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to