oschaaf 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-395768415 So `Last-Modified` is added by the origin. What I still don't get is how the `Last-Modified` header gets put on the wire after flowing through ngx_pagespeed. It looks like it ought to be stripped by pagespeed. Diff between responses with pagespeed off and on: ``` oschaaf@HP-Z620:~$ diff <(curl -sI https://www.ngxpagespeed.com/images/Puzzle.jpg?PageSpeed=off | sort) <(curl -sI https://www.ngxpagespeed.com/images/Puzzle.jpg | sort) 2a3 > Cache-Control: max-age=239 4c5 < Content-Length: 241260 --- > Content-Length: 98051 7c8,9 < ETag: "5a030687-3ae6c" --- > ETag: W/"PSA-aj-YsUBdV-i_6" > Expires: Fri, 08 Jun 2018 13:51:49 GMT 9d10 < Last-Modified: Wed, 08 Nov 2017 13:28:39 GMT 11a13 > X-Original-Content-Length: 241260 ``` As you can see Last-Modified only exists in the non-pagespeed version.
---------------------------------------------------------------- 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
