heroku / heroku-buildpack-nginx

Run NGINX in a Heroku app
244 stars 787 forks source link

gzip does not work? #85

Closed python273 closed 3 years ago

python273 commented 3 years ago

I'm using nginx-solo-sample.conf.erb with gzip_types application/json application/javascript text/css; added under gzip on;

$ curl -H "Accept-Encoding: gzip" -I https://mysterious-bayou-61009.herokuapp.com/hello.js
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx
Date: Sun, 27 Jun 2021 18:24:43 GMT
Content-Type: application/javascript
Content-Length: 3145731
Last-Modified: Sun, 27 Jun 2021 18:19:59 GMT
Etag: "60d8c14f-300003"
Accept-Ranges: bytes
Via: 1.1 vegur