1 (edited by jude.x.zhu 2018-02-10 18:45:39)

Topic: GZIP not apply on all the css and js files

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version:  CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

To enable gzip compression

I've added following content into the "/etc/nginx/conf-available/gzip.conf"

gzip on;
gzip_disable "msie6";

gzip_vary on;
gzip_proxied any;
gzip_comp_level 2;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

but not all the css and js file have been compressed with header "Content-Encoding:gzip"

for example:

    https://mail.domain.name/mail/skins/lar … 1515934851               compressed

    https://mail.domain.name/mail/program/j … 1515934860               not compressed


for more detail, you can use the http://gtmetrix.com to test the web performance

I've get the score 64 for the pagespeed score and 66 for yslow score.

about the compression part

it said

Enable compression for the following resources to reduce their transfer size by 389.1KiB (70% reduction).

Compressing https://mail.domain.name/mail/plugins/j … 1515934849 could save 185.6KiB (73% reduction).
Compressing https://mail.domain.name/mail/program/j … 1515934851 could save 112.8KiB (71% reduction).
Compressing https://mail.domain.name/mail/program/j … 1515934860 could save 55.8KiB (64% reduction).
Compressing https://mail.domain.name/mail/skins/lar … 1515934851 could save 17.7KiB (67% reduction).
Compressing https://mail.domain.name/mail/program/j … 1515934851 could save 8.8KiB (64% reduction).
Compressing https://mail.domain.name/mail/program/j … 1515934861 could save 8.4KiB (63% reduction).

Is there anything I can do ?

Thank you

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.