Koozali.org: home of the SME Server

How to enable php and javascript compression in apache

Offline beast

  • *
  • 245
  • +0/-0
How to enable php and javascript compression in apache
« on: May 07, 2011, 07:51:52 AM »
Hi All

Like to enable compression of html data but what is the right way to do it?

I have seen generic guides on the net, references to mod_gzip and mod_deflate. But how do I do it up to date with SME server?

Regards
Benny

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: How to enable php and javascript compression in apache
« Reply #1 on: May 07, 2011, 03:23:42 PM »
Like to enable compression of html data but what is the right way to do it?

I have seen generic guides on the net, references to mod_gzip and mod_deflate. But how do I do it up to date with SME server?
All most the same, the only difference is  that on SME Server you should not modify the configuration files directly but create custom template fragments to overload the defaults. See the SME Server Development Guide in the wiki.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)


Offline beast

  • *
  • 245
  • +0/-0