Issues with Flipping Book and Cloudfront
Permalink Browser Info Environment
On the Sussex Campervans website, Flipping Book isn't working on the public-facing Cloudfront site. It does work on the origin server.
Cloudfront URLhttps://www.sussexcampervans.com/essential-campervan-buyers-guide-fl...
Originhttps://origin.sussexcampervans.com/essential-campervan-buyers-guide...
The error I am seeing is a "416 Requested Range Not Satisfiable" on a HTTP query to download the PDF. From the error and the HTTP headers, it seems that the plugin is querying for a byte range which CloudFront believes is incorrect.
Please could you investigate and advise?
-David.
Cloudfront URLhttps://www.sussexcampervans.com/essential-campervan-buyers-guide-fl...
Originhttps://origin.sussexcampervans.com/essential-campervan-buyers-guide...
The error I am seeing is a "416 Requested Range Not Satisfiable" on a HTTP query to download the PDF. From the error and the HTTP headers, it seems that the plugin is querying for a byte range which CloudFront believes is incorrect.
Please could you investigate and advise?
-David.
Type: | Ticket |
---|---|
Status: | In Progress |
Hi,
Thank you for your response.
I've removed that errant tag but the problem is persisting. Please see:
https://www.sussexcampervans.com/essential-campervan-buyers-guide-fl...
(?test URL parameter is to bypass the CDN).
-David.
Thank you for your response.
I've removed that errant tag but the problem is persisting. Please see:
https://www.sussexcampervans.com/essential-campervan-buyers-guide-fl...
(?test URL parameter is to bypass the CDN).
-David.
Hi David,
Not sure what is happening here. But your document receives a status 416 from the server.
A, to me, unknown statuscode.
It seems it has to do something with your hosting setup.
Could you ask your provider for any guidance?
Not sure what is happening here. But your document receives a status 416 from the server.
A, to me, unknown statuscode.
It seems it has to do something with your hosting setup.
Could you ask your provider for any guidance?
This might be what is happening:
1. The javascript asks for a range of bytes of /download_file/1627/665 (see HTTP headers)
2. /download_file/1627/665 actually redirects (303) to /application/files/6816/3059/4512/Essential_Campervan_Buyers_Guide_2021_-_FULL.pdf
3. Cloudfront thinks that asking for a range of bytes of a resource that redirects makes no sense, so it returns 416 Range Not Satisfiable. This doesn't seem unreasonable.
Is there a reason within concrete5 for this redirect happening? If the javascript did the byte range query on the target URL instead, this issue might be resolved.
Thanks,
-David.
1. The javascript asks for a range of bytes of /download_file/1627/665 (see HTTP headers)
2. /download_file/1627/665 actually redirects (303) to /application/files/6816/3059/4512/Essential_Campervan_Buyers_Guide_2021_-_FULL.pdf
3. Cloudfront thinks that asking for a range of bytes of a resource that redirects makes no sense, so it returns 416 Range Not Satisfiable. This doesn't seem unreasonable.
Is there a reason within concrete5 for this redirect happening? If the javascript did the byte range query on the target URL instead, this issue might be resolved.
Thanks,
-David.
Seems the error is produced by the Facebook Trackingcode.
There is a javascript error there, that seems to block the loading of the PDF-viewer.
Could you try to temporary remove the trackincode and see if it fixes the issue.
Best,
Corretje