zlib.output_compression

Discussion regarding Joomla! 3.x Performance issues.

Moderators: General Support Moderators, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
User avatar
trogladyte
Joomla! Explorer
Joomla! Explorer
Posts: 418
Joined: Sat May 03, 2008 9:27 pm
Location: Phoenix, AZ
Contact:

zlib.output_compression

Post by trogladyte » Fri Dec 04, 2020 6:52 pm

I always turn on Gzip in the CMS, plus I have deflate in .htaccess. I recently noticed zlib.output_compression in my PHP settings and it was off. Should I turn it on? Would it do anything?

This is my deflate lines in .htaccess:

SetOutputFilter DEFLATE
Header set Expires "max-age=29030400, public"
Header unset ETag
FileETag None
Ian Shere - Phoenix Website Design & Hosting
http://www.citruskiwi.com
Certified Flight Instructor http://www.flygoodyear.com

User avatar
davidnguyen
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Sep 06, 2018 9:38 am
Contact:

Re: zlib.output_compression

Post by davidnguyen » Wed Dec 09, 2020 4:55 am

Hi,

Not sure but Gzip is more relevant to webserver configuration
David Nguyen - JoomlaShine
Joomla Templates: https://www.joomlashine.com/joomla-templates.html
Joomla Page Builder: https://www.joomlashine.com/joomla-exte ... ilder.html
10+ years in Joomla business

GerogescuM
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Sep 21, 2020 12:03 pm

Re: zlib.output_compression

Post by GerogescuM » Wed Dec 09, 2020 3:11 pm

Gzip compresion is more server related. You should not worry to do this in the cms.
Another server related optimization you should check, is if you have the lastest PHP version.

User avatar
trogladyte
Joomla! Explorer
Joomla! Explorer
Posts: 418
Joined: Sat May 03, 2008 9:27 pm
Location: Phoenix, AZ
Contact:

Re: zlib.output_compression

Post by trogladyte » Wed Dec 09, 2020 4:09 pm

OK, but should I use that instead of Joomla's GZip compression (in the admin Config)? Neither reply really addresses that. And, yes, right now I have the latest (bar one if you include 8.0) PHP version.
Ian Shere - Phoenix Website Design & Hosting
http://www.citruskiwi.com
Certified Flight Instructor http://www.flygoodyear.com

GerogescuM
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Sep 21, 2020 12:03 pm

Re: zlib.output_compression

Post by GerogescuM » Thu Dec 10, 2020 3:57 pm

trogladyte wrote:
Wed Dec 09, 2020 4:09 pm
OK, but should I use that instead of Joomla's GZip compression (in the admin Config)? Neither reply really addresses that. And, yes, right now I have the latest (bar one if you include 8.0) PHP version.
Use server compression. It's much faster and safe (no other conflicts).
Plus you won't have to enable it on every singe site from your server.

shoulders
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 204
Joined: Fri Oct 10, 2008 9:03 pm
Contact:

Re: zlib.output_compression

Post by shoulders » Sun Jan 10, 2021 12:25 am

for the end user gzip and deflate are the same. mod_deflate is gzips replacement.

enabling gzip in joomla compresses the HTML content and makes sure the correct headers are sent.

the zlib.output_compression is a php option that will enforce all text content to be compressed and the appropriate headers to be sent.

if joomla detects his php option is enabled it behaves appropriately and let's php add the headers and do the compression.

I doubt there is much speed difference between the 2.


Post Reply

Return to “Performance - Joomla! 3.x”