x First time here? Check out the FAQ

Come work for Umbraco - The Umbraco HQ are hiring Project managers, .NET developers and DevOps people!

  • Avatar50posts70karma

    Multiple log entries (24) for a single request

    Tom Allen started this topic November 10, 2011 @ 10:11, Go directly to the topic solution

    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


  • Avatar2528posts6323karma
    Comment with ID: 95754
    Richard Soeteman posted this reply November 10, 2011 @ 10:34

    Hi Tom,

    Strange works on my install. Can you check the MediaProtectLog table, does it also have 24 records?

    Thanks,

    Richard


  • Avatar50posts70karma
    Comment with ID: 95793
    Tom Allen posted this reply November 10, 2011 @ 12:28

    Yes, the duplicate entries are all present in the MediaProtectLog table.


  • Avatar2528posts6323karma
    Comment with ID: 95799
    Richard Soeteman posted this reply November 10, 2011 @ 12:48

    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?


  • Tom Allen posted this reply November 10, 2011 @ 01:10

    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!


  • Avatar2528posts6323karma
    Comment with ID: 95809
    Richard Soeteman posted this reply November 10, 2011 @ 01:28

    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


Please login or Sign up To post replies