apache gzip and joomla gzip compression

Discussion regarding Joomla! 2.5 Performance issues.

Moderator: 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.
speedy-software
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Nov 29, 2012 7:13 pm

apache gzip and joomla gzip compression

Postby speedy-software » Thu Nov 29, 2012 7:45 pm

Hi,

I have a question.

While i've found out apache compresses all my websites hosted on my server with gzip (whatismyip.com's http compression testing tool) i've had joomla gzip compression enabled, but experienced http error 330 from time to time accessing the site. I've read somewhere that could be due to double compression done on the site. Is that correct? is the joomla gzip compression option in general server settings seperate from apaches gzip compression? (which would really mean two compressions are done over the files served to client and generate this error)
the interesting thing was that once i refreshed the site after getting the error 330, the site loaded, is that reasonable? can somebody explain why if it is?

thanks a lot for your help in advance,

Speedy-Software

speedy-software
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Nov 29, 2012 7:13 pm

Re: apache gzip and joomla gzip compression

Postby speedy-software » Thu Nov 29, 2012 7:46 pm

btw. i'm using joomla 1.7 for this website.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 21480
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, The Netherlands
Contact:

Re: apache gzip and joomla gzip compression

Postby pe7er » Thu Nov 29, 2012 10:29 pm

speedy-software wrote:btw. i'm using joomla 1.7 for this website.

Welcome to Joomla forum!

Please upgrade always to the latest Joomla version within the same series before trying to solve errors with an older version. Possible bugs might have been solved in the meantime, and it's a waste of time trying to solve issues that are caused because of non-updated software...

Joomla 1.6 + 1.7 where short term support versions and are no longer supported.
Joomla 2.5 is the long term support version in the same series...
The latest version in the 2.5 series is Joomla 2.5.8: http://www.joomla.org/download.html
Kind Regards,
Peter Martin, Global Moderator
http://www.db8.nl - Joomla specialist, Nijmegen, Nederland
Developer of db8 Site Dev http://extensions.joomla.org/extensions ... 8-site-dev

User avatar
sitesrus
Joomla! Ace
Joomla! Ace
Posts: 1427
Joined: Mon Nov 12, 2012 10:48 pm

Re: apache gzip and joomla gzip compression

Postby sitesrus » Tue Dec 18, 2012 6:47 pm

Ya they're different.

You can compress content using php w/in scripts so PHP can compress pages and a lot of third party extensions can compress your scripts for you. This is good b/c if you're on shared hosting without the ability, this is your only option.

Apache has modules you can install like mod_gzip (for apache versions under 2) and mod_deflate (for apache versions 2+). This will compress all of your outgoing content the client requests based on rules setup (js, css, html, all, none, what compression level, etc.).

you can configure these modules in .htaccess (per directory) or in httpd.conf for the entire server. The existence of .htaccess if allowed overrides will alter the base settings in httpd.conf.

So if you are double compressing, turn of joomla's compression because you're already compressing the content and more most likely. So when the client goes to uncompress the content, it gets the next layer of compressed content from double compression and doesn't know what to do with it. It could in fact be garbage at that point if it's compressed twice...not sure.
I like working with Joomla :)


Return to “Performance - Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 1 guest