I have this in a Directory block in my httpd.conf. It uses mod_deflate AddOutputFilterByType DEFLATE text/html text/plain \ text/javascript application/x-javascript text/ css
>From howtoforge - http://www.howtoforge.com/apache2_mod_deflate -ReggieB On Dec 10, 8:24 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > Is anybody able to help me with this? > > I've seen other ways of doing Gzip, such as mod_gzip, but I'm not sure > if those ways gzip javascript files as well or just delivered html. So > if there is a better way to do this then I am doing, please let me > know. > > On Dec 9, 3:58 pm, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > > > So I have tried to gzip some of my javascript files (primarily > > prototype.js) and using that instead of the normal. However for some > > reason, it's not working. What I used to have and is working is: > > > $javascript->link(array('prototype', 'scriptaculous.js?load=effects', > > 'fade_appear'), false); > > > Then I gzipped prototype.js and changed it to this: > > > $javascript->link(array('prototype.js.gz', 'scriptaculous.js? > > load=effects', 'fade_appear'), false); > > > That didn't work, so I also tried: > > > $javascript->link(array('/js/prototype.js.gz', 'scriptaculous.js? > > load=effects', 'fade_appear'), false); > > > And that doesn't work as well. So I guess what I am wondering is how > > do I go about using gzipped javascript files? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---