Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
DeerSpotter
Topic Author
Posts: 13
Joined: 30 Mar 2011, 22:15

Mod_Deflate Not checking properly

02 Apr 2015, 21:28

http://www.gidnetwork.com/tools/gzip-test.php says that my Website is being Gzip compressed.

Yet the Check at: http://sandboxreviews.com/check/
is showing it's not running?

I modified my PHP.ini file with the following to make it work:
output_handler = ob_gzhandler
zlib.output_compression = Off
;zlib.output_handler =

I added a custom php check @ here http://sandboxreviews.com/info.php

Is there something wrong in the check page code or did i set it up wrong?
Last edited by DeerSpotter on 02 Apr 2015, 22:29, edited 2 times in total.
 
User avatar
DeerSpotter
Topic Author
Posts: 13
Joined: 30 Mar 2011, 22:15

Re: Mod_Deflate Not checking properly

02 Apr 2015, 22:13

using this site is better for checking, as it tells me which resources were compressed. http://gzipwtf.com/

But i'm surprised that it only compressed 3 files? is that all it needs to compress?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Mod_Deflate Not checking properly

03 Apr 2015, 01:00

DeerSpotter wrote:Yet the Check at: http://sandboxreviews.com/check/
is showing it's not running?
The "check" page just attempts to list various server settings, including the deflate module. It can't be detected through Mod Setenvif, but your server definitely has Gzip compression enabled!
DeerSpotter wrote:I modified my PHP.ini file with the following to make it work:
output_handler = ob_gzhandler
zlib.output_compression = Off
;zlib.output_handler =
This is PHP compression module, and it is in fact not what is compressing files from your server. Your server has the Apache deflate module installed, which is automatically compressing all text-based output from the server.
DeerSpotter wrote:But i'm surprised that it only compressed 3 files? is that all it needs to compress?
Nothing to be surprised about ... Imagevue X3 is optimized for performance, and the less requests the better. Keep in mind, Gzip will only apply to text-based assets, including css, javascript and the html page itself. Images are already compressed with jpg, so gzip does not apply.

All good.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Mod_Deflate Not checking properly

03 Apr 2015, 01:02

At the point of testing your actual website, I was getting "file not found" for this file, which should certainly be there:
http://sandboxreviews.com/public/css/0. ... ylight.css

Something you are aware of?
 
User avatar
DeerSpotter
Topic Author
Posts: 13
Joined: 30 Mar 2011, 22:15

Re: Mod_Deflate Not checking properly

03 Apr 2015, 01:10

I just made the Gzip faster with this tutorial: http://www.warpconduit.net/tag/htaccess/ and you mustve been in the process of loading it... it now works.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Mod_Deflate Not checking properly

03 Apr 2015, 01:23

Cool ...
http://www.warpconduit.net/tag/htaccess/ wrote:But for those of you on shared hosts that don’t allow the mod_deflate module and run PHP in CGI/FastCGI mode you can’t go with the easy method.
I am pretty sure your host has mod_deflate enabled by default, which is the best option ... So I don't think you are bringing anything to the table by applying any PHP-specific compression fixes ...
 
User avatar
DeerSpotter
Topic Author
Posts: 13
Joined: 30 Mar 2011, 22:15

Re: Mod_Deflate Not checking properly

03 Apr 2015, 01:42

mjau-mjau wrote:Cool ...
http://www.warpconduit.net/tag/htaccess/ wrote:But for those of you on shared hosts that don’t allow the mod_deflate module and run PHP in CGI/FastCGI mode you can’t go with the easy method.
I am pretty sure your host has mod_deflate enabled by default, which is the best option ... So I don't think you are bringing anything to the table by applying any PHP-specific compression fixes ...
I was pretty sure too when i called the tech guy. He said that we have it enabled, But for some reason he couldn't confirm it through a ssh command or any other way to load up modules. Since my Version of apache is 2.2.x I had to apply these compressions just in case. Weird i had 4 kb/s load time and now it shows 24 kb/s I think i did something right. I also added custom file extensions (some of the font packs used i also added them could be that)