Jason Stangroome

Results 29 comments of Jason Stangroome

@oschaaf I have posted the error.log with debug-level logging on nginx built `--with-debug` as a gist here: https://gist.github.com/jstangroome/83005610f84dcfaae161d54b384a6faa Since the cached object contains the questionable `Content-Length` header, I also included...

I've just realised that the failed response is not being truncated by pagespeed. My tests with `curl` were reading the `Content-Length` response header and truncating. If I pass `--ignore-content-length` to...

Is pagespeed expecting nginx to do the gzipping of the response? My nginx.conf does not contain any of the nginx gzip-related directives, meaning the default is `gzip off;`.

Adding `gzip on;` and `gzip_types *;` to the http-scope of nginx.conf doesn't change the behaviour.

@oschaaf Adding `pagespeed HttpCacheCompressionLevel 0;` does resolve the issue. The requests, once the resource is cached, now return `Transfer-Encoding: chunked` and do not include a `Content-Length` response header at all....

For reference, I've added another gist showing the hex dump of the cached file header and beginning of the body for both `HttpCacheCompressionLevel 0` (works) and `HttpCacheCompressionLevel 6` (broken). https://gist.github.com/jstangroome/0d22a0ece1f354a3fd8d78efd433ea69

I've confirmed that the seemingly unrelated `Content-Length: 105759` response header in the failing responses directly corresponds to the resulting size of the response body when pagespeed gzips the content itself...

I've done some further investigation. The URL that is failing doesn't exactly match the URL present in the HTML. The pagespeed hashes in the URL are different. From this I've...

@oschaaf This seems to be enough to reproduce the issue 90% of the time: https://gist.github.com/jstangroome/b1cdf650fa6c4cc1919c310dcea8dc1a I attempted to prune each file down to the minimum but I reached a point...

>the first request happens without Accept-Encoding: gzip @oschaaf all my testing, in Production, and with an isolated local VM, has been _with_ `Accept-Encoding: gzip` used for _every_ request but I'm...