redbox-cdn commented on issue #1570: PageSpeed could not optimize (Proxy_pass) if response returned 200 URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1570#issuecomment-395725372 Hi otto. Sorry I mistake attached debug logs. I forgot set the `proxy_set_header If-Modified-Since ""; ## ADD` New debug logs is attached again. [debug-2.log](https://github.com/apache/incubator-pagespeed-ngx/files/2084064/debug-2.log) > AFAICT ngx_pagespeed will not add the Last-Modified header, which is needed to end up with IMS requests. So then the next question is: where are these IMS headers in requests are coming from? Last-Modified header is added by origin server. In Addition, Request is CURL command. `curl -svko /dev/null 'http://1.1.1.1/test/test.css' -H 'Host: test.com' -H 'X-forwarded-proto: https' -H 'pragma: no-cache' -H 'cache-control: no-cache' -H 'If-Modified-Since: Mon, 04 Jun 2018 09:00:52 GMT' `
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
