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

Add immutable caching support

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      as a teacher, add the scorm package mod/scorm/tests/packages/RuntimeMinimumCalls_SCORM12.zip to a course.

      As a student, enter the SCORM package with HTTPS and Firefox, latest update (49+), if you open the Developer Tools (F12) and look at the network tab while htting F5 (Refresh) you should find no HTTP 304 hits to any of the scorm content files (html, CSS, JS, GIF/PNG/SVG) i.e. only HTTP 200 w/ a clear indication about the content being cached.

      Then - as a teacher replace the previously uploaded scorm package with the SCORM package file uploaded here. (RuntimeMinimumCalls_SCORM12-modified.zip)

      Enter as a student in the same browser (make sure browser cache isn't cleared during the 2 tests) and make sure the content within the "Playing the Game" pages now displays the following text:
      "Modified Content text - not cached from previous scorm package"

      Show
      as a teacher, add the scorm package mod/scorm/tests/packages/RuntimeMinimumCalls_SCORM12.zip to a course. As a student, enter the SCORM package with HTTPS and Firefox, latest update (49+), if you open the Developer Tools (F12) and look at the network tab while htting F5 (Refresh) you should find no HTTP 304 hits to any of the scorm content files (html, CSS, JS, GIF/PNG/SVG) i.e. only HTTP 200 w/ a clear indication about the content being cached. Then - as a teacher replace the previously uploaded scorm package with the SCORM package file uploaded here. (RuntimeMinimumCalls_SCORM12-modified.zip) Enter as a student in the same browser (make sure browser cache isn't cleared during the 2 tests) and make sure the content within the "Playing the Game" pages now displays the following text: "Modified Content text - not cached from previous scorm package"
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      master_MDL-58080

      Description

      SCORM makes full usage of versioned URLs and MDL-57789 will add support for immutable: add this option when serving content and manifest files.
      Do not apply it to packages to avoid a breaking change (BC): someone could automate the download of packages still using version "0".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danmarsden Dan Marsden
                Reporter:
                matteo Matteo Scaramuccia
                Peer reviewer:
                Matteo Scaramuccia
                Integrator:
                Andrew Nicols
                Tester:
                Jake Dallimore
                Participants:
                Component watchers:
                Matteo Scaramuccia, Jake Dallimore, Jun Pataleta, Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18