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

Add immutable caching support

XMLWordPrintable

    • MOODLE_33_STABLE, MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • master_MDL-58080
    • 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"

      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".

            danmarsden Dan Marsden
            matteo Matteo Scaramuccia
            Matteo Scaramuccia Matteo Scaramuccia
            Andrew Lyons Andrew Lyons
            Jake Dallimore Jake Dallimore
            Votes:
            0 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.