Welcome! Log In Create A New Profile

Advanced

Problem with partial content 1.7.4

Posted by mschipperheyn 
Problem with partial content 1.7.4
September 04, 2014 09:56AM
I was having trouble loading partial content after upgrading nginx to 1.7.4. I didn't realize it might be nginx until I compared the headers on my dev system which uses nginx 1.6.0 and my production system which uses 1.7.4 (I know, they should be equal).

Behind nginx there is a Tomcat 7/Spring MVC server

On 1.7.4 it looks like only the first partial receives the accept-ranges:bytes but subsequent do not

On the same pdf file that is requested I see the following

1.6.0
Initial request
Status code: 200

accept-ranges:bytes
content-disposition:inline;filename="Nova-Zemblastraat-20140904.pdf"
content-length:49447
content-range:bytes 196608-246054/246055
content-type:application/octet-stream
date:Thu, 04 Sep 2014 13:32:44 GMT
etag:"03d959a9213a185458c6eaea13ad5ced1"
expires:Thu, 11 Sep 2014 13:32:44 GMT
last-modified:Thu, 04 Sep 2014 13:32:20 GMT
server:nginx/1.6.0
status:206 Partial Content
version:HTTP/1.1

Initial partial
Status code: 206

accept-ranges:bytes
content-disposition:inline;filename="Nova-Zemblastraat-20140904.pdf"
content-length:65536
content-range:bytes 0-65535/246055
content-type:application/octet-stream
date:Thu, 04 Sep 2014 13:32:44 GMT
etag:"065e6b73b8235022c952e2c9043709ef3"
expires:Thu, 11 Sep 2014 13:32:44 GMT
last-modified:Thu, 04 Sep 2014 13:32:20 GMT
server:nginx/1.6.0
status:206 Partial Content
version:HTTP/1.1

1.7.4
Initial request
Status code: 200

Accept-Ranges:bytes
Cache-Control:public
Connection:keep-alive
Content-Disposition:inline;filename="Nova-Zemblastraat-20140903.pdf"
Content-Length:246055
Content-Range:bytes 0-246054/246055
Content-Type:application/octet-stream
Date:Thu, 04 Sep 2014 13:34:19 GMT
ETag:"0ad073935f7b24d50f4ee5eec06e3b21f"
Expires:Thu, 11 Sep 2014 13:34:35 GMT
Last-Modified:Wed, 03 Sep 2014 14:57:48 GMT
Server:nginx/1.7.4

Initial partial
Status code: 206

Cache-Control:public
Connection:keep-alive
Content-Disposition:inline;filename="Nova-Zemblastraat-20140903.pdf"
Content-Length:65536
Content-Range:bytes 0-65535/246055
Content-Range:bytes 0-246054/246055
Content-Type:application/octet-stream
Date:Thu, 04 Sep 2014 13:34:19 GMT
ETag:"0ad073935f7b24d50f4ee5eec06e3b21f"
Expires:Thu, 11 Sep 2014 13:34:35 GMT
Last-Modified:Wed, 03 Sep 2014 14:57:48 GMT
Server:nginx/1.7.4

I would also like to reference this discussion
https://www.ruby-forum.com/topic/5024940

Is this a bug or is it something I might be related to the Spring/Tomcat setup?

Marc



Edited 2 time(s). Last edit at 09/04/2014 09:57AM by mschipperheyn.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready