Copied to clipboard

Flag this post as spam?

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


  • Bo Kingo Damgaard 157 posts 456 karma points
    Feb 11, 2013 @ 09:36
    Bo Kingo Damgaard
    0

    Issue with the If-Modified-Since header

    Hi Peter

    There seems to be an issue in your code when checking the If-Modfied-Since header. From what I can see in dotPeek, you check if If-Modified-Since is earlier than the newest file, and then return 304, if that is true. Shouldn't it be the other way around, that you return 304 if If-Modified-Since is later than the newest file? This means the code should read 

          if (dateTime.CompareTo(date) >= 0)

    in Compression.Page_Load

    /Bo

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies