A
A
Arthur Koch2012-04-19 15:53:20
HTML
Arthur Koch, 2012-04-19 15:53:20

Triple file request on object element?

Hey!
I embed the pdf document into the page via the object tag and the chrome debugger shows me the following picture.
bbf7184b95cba99c13d17c1af72de51a.jpg
3 requests for a document are sent. The first one is canceled, the next two are taken from the cache. After clearing the cache, the first one is still canceled, and the last 2 requests are taken from the server, and the picture remains the same. This is not normal in theory. Or am I wrong? Why is this happening and how to fix it if it's not normal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Peretyatko, 2012-04-19
@dudeonthehorse

serverfault.com/questions/61424/why-are-we-seeing-apache-206-partial-responses-for-pdf-downloads
in short - this is normal behavior, in Adobe Reader, as far as I understand, this is done so that while loading full PDF could be shown to the user first pages. And since your PDF is apparently small, it loads completely earlier than partial requests (they are already taken from the cache so there is no overhead)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question