Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-341

Date problem in file serving

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Final, 1.2.0.Beta4
    • 1.2.0.Beta1, 1.2.0.Beta3
    • None
    • None
    • Low

      Request header:
      If-Modified-Since:Mon, 03 Nov 2014 12:51:29 GMT
      This format is RFC1123_PATTERN_FORMAT and does not contain milliseconds.
      For file serving, the file modified date contains milliseconds (resource.getLastModified()).
      So DateUtils.handleIfUnmodifiedSince() and DateUtils.handleIfModifiedSince()
      don't work as expected and even if the headers will match in request and response the file will be sent.
      Maybe the file date should be rounded.
      Thank you.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              andreipet Andrei Petrovici (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: