You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nginx in both production and development setups is not configured to gzip-compress the application/javascript content-type. The config marks the application/x-javascript content-type as a candidate for compression, but that's a deprecated mimetype and is not what the nginx file-to-mimetype mapping, or the OS's file-to-mimetype mapping, will derive for a *.js filename.
Absent any comment as to why application/javascript is not included in the compressible type, and considering the advantages of compressing it, I'm assuming that the current behaviour is not the intended behaviour.
Steps to reproduce the problem
Note: when staging gets upgraded, there may be a new chunk-vendors.*.js file, so the below URL may need to be adjusted if you're trying this in the future.
Shown is that a) no transport compression is being applied — no Content-Encoding header is present in the response; and b) the response is large enough to meet the gzip_min_length criterium, and c) the response is in fact quite compressible (ratio 2.5×), thus it would be worthwhile to enable it.
I see the same lack of transport compression in my browser's devtools by the way. CSS gets compressed, JS doesn't.
The text was updated successfully, but these errors were encountered:
Problem description
Nginx in both production and development setups is not configured to gzip-compress the
application/javascript
content-type. The config marks theapplication/x-javascript
content-type as a candidate for compression, but that's a deprecated mimetype and is not what the nginx file-to-mimetype mapping, or the OS's file-to-mimetype mapping, will derive for a*.js
filename.Absent any comment as to why application/javascript is not included in the compressible type, and considering the advantages of compressing it, I'm assuming that the current behaviour is not the intended behaviour.
Steps to reproduce the problem
Note: when staging gets upgraded, there may be a new chunk-vendors.*.js file, so the below URL may need to be adjusted if you're trying this in the future.
Shown is that a) no transport compression is being applied — no Content-Encoding header is present in the response; and b) the response is large enough to meet the
gzip_min_length
criterium, and c) the response is in fact quite compressible (ratio 2.5×), thus it would be worthwhile to enable it.I see the same lack of transport compression in my browser's devtools by the way. CSS gets compressed, JS doesn't.
The text was updated successfully, but these errors were encountered: