IE 10 Apache / Linux HTTP / 1.0 412 Prerequisite Failed to load video.js mp4 video

We have an interesting problem when we have this combination of things:

IE 10 (sometimes also IE 9) Apache 2.2 / Linux (RH EL 6.3) works with https player.js player mp4 video file

When we have this combination of things, the video player shows a rotation icon.

When we look at the http headers, we see: request:

GET /tmp/Question123.mp4 HTTP/1.1 Accept */* If-Unmodified-Since Thu, 11 Jul 2013 19:49:44 GMT If-Match W/"a074e-50228d-4e141b21b6cfb" Range bytes=49152-5251724 User-Agent Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; MALC) GetContentFeatures.DLNA.ORG 1 Pragma getIfoFileURI.dlna.org Accept-Language en-US Accept-Encoding gzip, deflate Host: mysite.com Connection Keep-Alive 

Answer:

 HTTP/1.0 412 Precondition Failed 

IE 8 seems to use flash, so we have a different path and it works. In Firefox / Chrome / Safari everything works fine.

The only thing we can see is that it can cause the following: Firefox uses:

 If-Modified-Since Thu, 11 Jul 2013 19:58:37 GMT If-None-Match "a074e-50228d-4e141d1edc1b6" 

These are different request headers.

Any ideas?

thanks Joel

+4
source share
1 answer

The problem is caused by these request headers:

 If-Unmodified-Since Thu, 11 Jul 2013 19:49:44 GMT If-Match W/"a074e-50228d-4e141b21b6cfb" 

The server says "no, my current version of this resource does not meet these criteria, so I will return an HTTP / 412 response so you know about it."

These headers exist because the client makes an HTTP RANGE request (it requests only part of the file), and therefore it needs to make sure that part of the file that it returns from the server is the same version of the file for which it already has part.

What are the HTTP response headers in the original response? Is the ETAG header correct in the response with quotation marks wrapping its meaning? Is there only one server or are you performing load balancing requests on multiple servers?

+2
source

Source: https://habr.com/ru/post/1490996/


All Articles