Jump to content


PageSpeed problem with gzip


3 replies to this topic

#1 Henk1060

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 07 February 2017 - 08:18 AM

Good day,

I have a problem with the LiveZilla code.
All my js and css will be compressed.

Unfortunately not
Resource.php? T = js & 1 = jscript / jsglobal.min.js & 2 = jscript / jsbox.min.js & 3 = jscript / jstrack.min.js
Resource.php? T = css & 1 = style.min.css

Use an Nginx server with these settings.
And https and http2

gzip on;
gzip_http_version 1.1;
gzip_comp_level 8;
gzip_static on;
gzip_vary on;
gzip_proxied any;
gzip_min_length 1400;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;
gzip_buffers 16 8k; gzip_disable "MSIE [1-6]\.(?!.*SV1)";
expires 1M;
access_log off;
add_header Cache-Control "public";

How could I solve this problem?
Or is it possible to remove the Js and css from the code and insert this manually into my template?

#2 Patrick Keil

    Administrator

  • Administrators
  • 3139 posts
  • LocationSingen, Germany

Posted 07 February 2017 - 08:26 AM

Hi,

Please note that the LiveZilla resource files are already compressed. You don't need to compress again.

You may want to exclude the LiveZilla folder.

#3 Henk1060

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 07 February 2017 - 08:39 AM

Hy, Thanks for your fast anwser

This is the Problem
Posted Image

#4 Patrick Keil

    Administrator

  • Administrators
  • 3139 posts
  • LocationSingen, Germany

Posted 07 February 2017 - 08:52 AM

There's a confusion between compression and minification. My fault.

You are right, this is a webserver configuration but I don't know what's wrong with your settings.

Our resource php outputs one of these two headers, depending if its's css or js

if($_REQUEST["t"]=="css")
    header("Content-Type: text/css;");
else
    header("Content-Type: application/javascript;");

Both header types are included in your configuration.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users