Copied to clipboard

Flag this post as spam?

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


  • Mladen B. 12 posts 35 karma points
    Sep 24, 2014 @ 11:04
    Mladen B.
    0

    When media is not found the reply status should be 404, not 200

    Consider this simple request: http://host/Imagegen.ashx?image=/media/99999/non_existing_file.png&height=16

    This request should return an error page with status 404, so that browsers can also be aware of the issue, instead of returning the normal page with status 200 (OK) filled with html/text content about the error message, which makes the browser fill the Console log with messages like this:

    "Resource interpreted as Image but transferred with MIME type text/html: "http://host/Imagegen.ashx?image=/media/99999/non_existing_file.png&height=16".

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 24, 2014 @ 13:47
    Douglas Robar
    0

    Quite right, that will be corrected.

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft