D
D
Dmitry2015-08-31 08:24:54
Nginx
Dmitry, 2015-08-31 08:24:54

Why doesn't nginx recompress scripts like path.js?ver=4.3?

The NGINX config has:

gzip  on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_min_length 1000;
gzip_comp_level 5;
gzip_static on;
gzip_proxied any;
gzip_types text/plain text/xml text/css application/x-javascript text/javascript ...

But in fact, some of the files remain uncompressed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Vanin, 2015-08-31
@vanton

What is the size of non-compressible files?
gzip_min_length 1000;

K
Kirill, 2015-08-31
@kshvakov

And path.js?ver=4.3 what Content-Type does it return? If it is generated there by some script or something else, it may differ from those specified in gzip_types

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question