I'm about to purchase MediaProtect, which looks ideal for my needs now, but...
When testing on localhost I find that I get loads of duplicate log entries for my downloads. My client needs an accurate list for his marketing team to analyse.
All of the files in question are based on upload properties on protected content nodes, rather than being picked from the Media section.
One protected file, when clicked, generated 24 log entries. Another one under the same protected node hierarchy generated 4 logs.
I'd be pleased if this could be investigated and fixed - as soon as it's working as advertised I'd like to purchase and deploy it. Let me know if you need any more information from me in order to duplicate it.
I find that strange since it's only logging when a request is done to that specific document. So something is requesting the document, maybe worth to open fiddler and check where the requests come from?
Right. You'll be fascinated to know that this seems to be something to do with how Chrome (at least) handles the opening of Fast Web View PDFs in the browser. It appears to make concurrent requests for each page in the document, rather than a single request for the entire file! Hence, a 20-page PDF generates 24 requests.
I wonder if there's a way to force the browser to download the file, using http headers, rather than opening in-browser? That'd be a nice optional feature!
Yes checked it in chrome and indeed. I already try to force a download but Chrome ignores that. However the status code of the other requests are 206 instead of a 200 which is normal, I will try to filter that when logging and only log the request with status 200. Will keep you posted.
Multiple log entries (24) for a single request
Hi Richard
I'm about to purchase MediaProtect, which looks ideal for my needs now, but...
When testing on localhost I find that I get loads of duplicate log entries for my downloads. My client needs an accurate list for his marketing team to analyse.
All of the files in question are based on upload properties on protected content nodes, rather than being picked from the Media section.
One protected file, when clicked, generated 24 log entries. Another one under the same protected node hierarchy generated 4 logs.
I'd be pleased if this could be investigated and fixed - as soon as it's working as advertised I'd like to purchase and deploy it. Let me know if you need any more information from me in order to duplicate it.
Cheers,
Tom
Hi Tom,
Strange works on my install. Can you check the MediaProtectLog table, does it also have 24 records?
Thanks,
Richard
Yes, the duplicate entries are all present in the MediaProtectLog table.
I find that strange since it's only logging when a request is done to that specific document. So something is requesting the document, maybe worth to open fiddler and check where the requests come from?
Right. You'll be fascinated to know that this seems to be something to do with how Chrome (at least) handles the opening of Fast Web View PDFs in the browser. It appears to make concurrent requests for each page in the document, rather than a single request for the entire file! Hence, a 20-page PDF generates 24 requests.
I wonder if there's a way to force the browser to download the file, using http headers, rather than opening in-browser? That'd be a nice optional feature!
Hi Tom,
Yes checked it in chrome and indeed. I already try to force a download but Chrome ignores that. However the status code of the other requests are 206 instead of a 200 which is normal, I will try to filter that when logging and only log the request with status 200. Will keep you posted.
Thanks,
Richard
is working on a reply...