Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2014-10-20 13:03:34

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

How to activate Gzip ?

I'm trying to improve google pagespeed insight and obviusly website speed. I have nginx, what I need to do if I whant to activate gzip compression on ASP?
I noticed in "nginx.conf" there is already the right code for gzip, so  I have to add or modify some code in /etc/php.ini ?

Before I tried to activate "zlib.output_compression" in php.ini but I had some problems or conflict.

Any suggestion?

Offline

#2 2014-10-20 15:37:11

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: How to activate Gzip ?

Activate gzin compression in nginx, not in PHP.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2014-10-20 16:46:01

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

Re: How to activate Gzip ?

In nignx.conf there is already this gzip code, but gzip isn't recognize by google or other gzip check website:

    gzip              on;
    gzip_static       on;
    gzip_buffers      16 8k;
    gzip_comp_level   9;
    gzip_http_version 1.0;
    gzip_min_length   0;
    gzip_types        text/plain text/css image/x-icon image/bmp;
    gzip_vary         on;
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";

Offline

#4 2014-10-20 17:44:33

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

Re: How to activate Gzip ?

some site confirmed that deflate compression in enable, but other site and google pagespeed continue to ask to activate gzip or deflate compression for style.css and java

Offline

#5 2014-10-20 18:13:19

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: How to activate Gzip ?

Hmmm...for my website i have 70/100 for mobile and 89/100 on desktop. JS/CSS is gzipped/minified. Need to move js in the footer (that doesnt always work) and optimize images. I will include the image optimization in next version. I also use nginx with the gzip function/rules.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#6 2014-10-20 18:39:45

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

Re: How to activate Gzip ?

google pagespeed ask me to compress style.css?v3 and jquery.main-0.1.js?v7, css java and html are already minified, actually I have 70/100 for desktop and 66 for mobile

Offline

Board footer

Powered by FluxBB