jmarantz commented on issue #1557: Optimized javascript is not compressed
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1557#issuecomment-388572017
 
 
   This is probably not the issue, or may even be a cut&paste error, but in 
your accept-encoding you misspelled "deflate" (lacking the L).
   
   It does say content-encoding:gzip in the response headers.  Also of note: 
Varnish appears to be in the serving path, which may do its own inflation or 
something.  In any case, an equivalent fetch from ngxpagespeed.com appears to 
work as expected.
   ```
   curl -v -H 'Accept-Encoding: gzip,deflate' 
'https://www.ngxpagespeed.com/rewrite_javascript.js.pagespeed.ce.Fa3p2b86VH.js'
   ...
   GET /rewrite_javascript.js.pagespeed.ce.Fa3p2b86VH.js HTTP/1.1
   > Host: www.ngxpagespeed.com
   > User-Agent: curl/7.54.0
   > Accept: */*
   > Accept-Encoding: gzip,deflate
   > 
   < HTTP/1.1 200 OK
   < Server: nginx/1.13.8
   < Content-Type: application/javascript
   < Transfer-Encoding: chunked
   < Connection: keep-alive
   < Vary: Accept-Encoding
   < Strict-Transport-Security: max-age=15768000
   < X-Original-Content-Length: 260
   < Date: Sat, 12 May 2018 17:52:27 GMT
   < Expires: Sun, 12 May 2019 17:52:27 GMT
   < Cache-Control: max-age=31536000
   < ETag: W/"0"
   < X-Page-Speed: 1.13.35.2-0
   < Content-Encoding: gzip
   < 
   U?K?0
        D?9ňU
             ?k?e{?U
   * Connection #0 to host www.ngxpagespeed.com left intact
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to