Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-39688

X-Sendfile with byte-served content breaks when ETag header is added

XMLWordPrintable

    • MOODLE_23_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • w22_MDL-39688_m26_etag
    • Hide

      You will need to rerun each test multiple times with:

      • debug_developer disabled
      • your browser cache enabled

      The first time that you run the test, it should seed the file to cache. On subsequent times, the file should be picked up from the cache.

      1/ test normal file sending - for example resource activity files, there should be Etag header
      2/ test byteserving - for example resource with large PDF in Adobe viewer, the Etag should not be in range requests
      3/ repeat the tests with and without xsendfile multiple times.

      Show
      You will need to rerun each test multiple times with: debug_developer disabled your browser cache enabled The first time that you run the test, it should seed the file to cache. On subsequent times, the file should be picked up from the cache. 1/ test normal file sending - for example resource activity files, there should be Etag header 2/ test byteserving - for example resource with large PDF in Adobe viewer, the Etag should not be in range requests 3/ repeat the tests with and without xsendfile multiple times.

      I've just been investigating an issue whereby MP4 content served using X-Accel-Redirect/X-Sendfile is being served using Byte Ranges, but the partial content is cached by the browser.

      It appears that the ETag header is still added, and so the browser is caching some of the content, but not all of it. On subsequent attempts to view the same content, the incorrect partial range is returned and it fails to play.

            skodak Petr Skoda
            dobedobedoh Andrew Lyons
            Dan Poltawski Dan Poltawski
            Sam Hemelryk Sam Hemelryk
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.