deflate not working properly with gziploader

On files managed by dolphins caching/compression (gzip_loader.php) deflate does not work properly. Files are delivered with "Content-Encodinggzip" but the ratio is 1 (no compression).

If you disable "Enable Compression For JS/CSS Files" deflate works on (bx_templ) css files but not (ratio 1) on js files.

 

By the way: Is anyone reading bug reports and entering them into trac at all or do I have to pay more just to report bugs?

Quote · 21 Dec 2013

You will need to disable caching through gzip_loader.php file if you need to enable compression to static resources (css/js).

In your current case - it loads styles and scripts dynamically (using this PHP file), it can not be considered as static css/js files.

Quote · 21 Dec 2013

So its no bug that it sends "Content-Encoding: gzip" with a compression ratio of 1? Please explain.

Quote · 21 Dec 2013

bump

gzip_loader.png · 33K · 399 views
Quote · 14 Jan 2014

I had problems with javascripts caching on my development site so I disabled it for my javacripts to work. There might be a bug to be looked at. 

Guynuked -- Dedicated server and Dolphin-friendly hosting with Zarconia.net
Quote · 15 Jan 2014

 

I had problems with javascripts caching on my development site so I disabled it for my javacripts to work. There might be a bug to be looked at. 

I guess they are talking about how to set a compression ratio, not about non-working javascripts caching.

http://boonexpert.com
Quote · 15 Jan 2014

This is a serious waste of resources/load time and easily fixed.

On demo you get 50-75% of total size from not compressed gzip_loader files! With every page access!

too big.png · 20.2K · 570 views
Quote · 29 Jan 2014

Turns out WebKit inspector relies on Content-Length: header. gzip_loader doesn't send it.

But I don't get why you don't let the web server do the work:

RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}gz -f
RewriteRule (.*\.[a-z]{2,4})$ $1gz [L]
AddType "text/css;charset=UTF-8" .cssgz
AddEncoding gzip .cssgz

Quote · 2 Feb 2014

Dolphin can gzip this content, there is setting option to turn it on or off.

By default it is enabled and as you can see on demo.boonex.com is working:

It is possible to disable gzipping in Dolphin and rely on web-server to do gzipping (demo.boonex.com webserver is setup this way as well):

As you can see result is very similar in both cases, however second variant may require custom web-server tuning which is difficult for some people, in Dolphin - it's easy - just a checkbox.

gzip_enabled_in_dolphin.jpg · 70.9K · 565 views
gzip_disabled_in_dolphin.jpg · 74.5K · 493 views
Rules → http://www.boonex.com/terms
Quote · 3 Feb 2014

Yea, my last post was supposed to mean: WebKit had a bug and reported wrong compression ratio – no dolphin bug.

 

With the rewrite method all you had to do in php is create the corresponding gz file (together with the uncompressed one) if compression is enabled in settings – no gzip loader needed.

Quote · 3 Feb 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.