{"action":"created","issue":{"url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1319","repository_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed","labels_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1319/labels{/name}","comments_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1319/comments","events_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1319/events","html_url":"https://github.com/pagespeed/ngx_pagespeed/issues/1319","id":188753009,"number":1319,"title":"Corrupted JS","user":{"login":"froilanmendoza","id":23323554,"avatar_url":"https://avatars.githubusercontent.com/u/23323554?v=3","gravatar_id":"","url":"https://api.github.com/users/froilanmendoza","html_url":"https://github.com/froilanmendoza","followers_url":"https://api.github.com/users/froilanmendoza/followers","following_url":"https://api.github.com/users/froilanmendoza/following{/other_user}","gists_url":"https://api.github.com/users/froilanmendoza/gists{/gist_id}","starred_url":"https://api.github.com/users/froilanmendoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/froilanmendoza/subscriptions","organizations_url":"https://api.github.com/users/froilanmendoza/orgs","repos_url":"https://api.github.com/users/froilanmendoza/repos","events_url":"https://api.github.com/users/froilanmendoza/events{/privacy}","received_events_url":"https://api.github.com/users/froilanmendoza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-11T12:46:51Z","updated_at":"2016-11-14T18:29:13Z","closed_at":null,"body":"pagespeed v1.11.33.4-0\r\nnginx v1.10\r\nmagento EE 1.13.0.2\r\n\r\nPagespeed generates corrupted JS when turned on.  I have only enabled the bare minimum pagespeed settings on nginx:\r\n\r\n`pagespeed on;\r\n    pagespeed FileCachePath /var/ngx_pagespeed_cache;\r\n\r\n    pagespeed Statistics on; \r\n    pagespeed StatisticsLogging on;\r\n    pagespeed LogDir /var/log/pagespeed;\r\n    pagespeed AdminPath /pagespeed_admin;\r\n\r\n    location ~ \"\\.pagespeed\\.([a-z]\\.)?[a-z]{2}\\.[^.]{10}\\.[^.]+\" { add_header \"\" \"\"; }\r\n    location ~ \"^/ngx_pagespeed_static/\" { }\r\n    location ~ \"^/ngx_pagespeed_beacon\" { }`\r\n\r\nThe uncorrupted JS can be found in https://www.myspicesage.com/media/js/d6a0f3e34b288de48f06382595f085d4-v2.18.js while the corrupted one when pagespeed is enabled is attached (screenshot).  I have disabled pagespeed now (obviously, as this is a production system) but they were all tested on www.myspicesage.com \r\n\r\nThank you.\r\n\r\n<img width=\"971\" alt=\"pagespeed-screenshot\" src=\"https://cloud.githubusercontent.com/assets/23323554/20215511/b950f164-a7e2-11e6-9642-5a8b21c3d3a3.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/comments/260419222","html_url":"https://github.com/pagespeed/ngx_pagespeed/issues/1319#issuecomment-260419222","issue_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1319","id":260419222,"user":{"login":"jmarantz","id":1942589,"avatar_url":"https://avatars.githubusercontent.com/u/1942589?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarantz","html_url":"https://github.com/jmarantz","followers_url":"https://api.github.com/users/jmarantz/followers","following_url":"https://api.github.com/users/jmarantz/following{/other_user}","gists_url":"https://api.github.com/users/jmarantz/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarantz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarantz/subscriptions","organizations_url":"https://api.github.com/users/jmarantz/orgs","repos_url":"https://api.github.com/users/jmarantz/repos","events_url":"https://api.github.com/users/jmarantz/events{/privacy}","received_events_url":"https://api.github.com/users/jmarantz/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T18:29:12Z","updated_at":"2016-11-14T18:29:12Z","body":"What else might happen on the load-balancer?  Is it possible that PageSpeed gzip-encoding the response, but your LB is stripping content-encoding?\r\n\r\nI noticed that https://www.myspicesage.com/media/js/d6a0f3e34b288de48f06382595f085d4-v2.18.js is not served with content-encoding:gzip\r\n\r\nBut then neither is http://www6.myspicesage.com/freesample/media/js/ce00c82b8064fbbb144a034715d96493-v2.18.js.pagespeed.jm.4zLlsLjzm1.js , which confuses me.  Chrome definitely sends accept-encoding:gzip.  Why isn't your server serving it, especially with PageSpeed?\r\n\r\nOne thing I wanted to check is whether, when your server is serving corrupted JS, it would be uncorrupted by passing it through \"gunzip\".  But since you only pasted an image of the JS, it was hard to do that :)"}}
{"actor":{"display_login":"jmarantz"}}