sev2
2008-Jul-16 19:26 UTC
anyone know anything about using mod_deflate gzipping with Rails?
Anyone know anything about using mod_deflate gzipping with Rails? I''ve got it enabled in our .htaccess but it doesn''t seem to handle gzip anything going through Rails. Any ideas? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Peter De Berdt
2008-Jul-17 07:06 UTC
Re: anyone know anything about using mod_deflate gzipping with Rails?
On 16 Jul 2008, at 21:26, sev2 wrote:> Anyone know anything about using mod_deflate gzipping with Rails? I''ve > got it enabled in our .htaccess but it doesn''t seem to handle gzip > anything going through Rails. Any ideas?It should. We''re using it for all our applications. This is the section that we stick at the end of our vhost configuration (not on .htaccess, but it really shouldn''t make all too much of a difference): # Deflate AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html If it doesn''t work, you should check your apache logs, there should be some feedback in there on why the page isn''t deflated. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
subv3
2008-Jul-18 14:14 UTC
Re: anyone know anything about using mod_deflate gzipping with Rails?
Thanks Peter. This app is on shared hosting so we can''t edit the vhost conf. I think I''ve managed to get an answer from the hosts (after a lot of talk). We simply have to move our app dir into our public_html folder.. which should make gzip compression work. Cheers Alistair Holt On Jul 17, 8:06 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 16 Jul 2008, at 21:26, sev2 wrote: > > > Anyone know anything about using mod_deflate gzipping with Rails? I''ve > > got it enabled in our .htaccess but it doesn''t seem to handle gzip > > anything going through Rails. Any ideas? > > It should. We''re using it for all our applications. This is the > section that we stick at the end of our vhost configuration (not > on .htaccess, but it really shouldn''t make all too much of a > difference): > > # Deflate > AddOutputFilterByType DEFLATE text/html text/plain text/xml > application/xml application/xhtml+xml text/javascript text/css > BrowserMatch ^Mozilla/4 gzip-only-text/html > BrowserMatch ^Mozilla/4.0[678] no-gzip > BrowserMatch \bMSIE !no-gzip !gzip-only-text/html > > If it doesn''t work, you should check your apache logs, there should be > some feedback in there on why the page isn''t deflated. > > Best regards > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---