Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Allen 70 karma points
    Nov 10, 2011 @ 10:11
    Tom Allen
    0

    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

  • Richard Soeteman6952 karma points
    Nov 10, 2011 @ 10:34
    Richard Soeteman
    0

    Hi Tom,

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

    Thanks,

    Richard

  • Tom Allen70 karma points
    Nov 10, 2011 @ 12:28
    Tom Allen
    0

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

  • Richard Soeteman6952 karma points
    Nov 10, 2011 @ 12:48
    Richard Soeteman
    0

    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 Allen70 karma points
    Nov 10, 2011 @ 13:10
    Tom Allen
    0

    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!

  • Richard Soeteman6952 karma points
    Nov 10, 2011 @ 13:28
    Richard Soeteman
    0

    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 Sign in or register to post replies

Write your reply to:

Draft
Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community.