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

optimise static file caching - fix headers and use slash arguments

    Details

    • Testing Instructions:
      Hide

      We need to test that we are not breaking file servering anywhere and that we are not ending up with broken links/resources, so there there are several parameters that affect static file serving and caching which will be need to be tried disabeld and enabled:

      1/ $CFG->slasharguments
      2/ $CFG->cachejs
      3/ $CFG->themedesignermode
      4/ $CFG->yuicomboloading
      5/ ssl mode
      6/ server type (IIS, Apache)
      7/ proxy servers - cloudfare, squid, etc.

      In order to test this we need to test all permutations in all supported browsers and for all themes.

      I know it is going to be a pain, but the perf benefits of this change could be huge on some sites.

      What to look for:

      • notices in PHP logs
      • missing files in apache log
      • errors in JS console
      • missing images
      • non-functional JS
      Show
      We need to test that we are not breaking file servering anywhere and that we are not ending up with broken links/resources, so there there are several parameters that affect static file serving and caching which will be need to be tried disabeld and enabled: 1/ $CFG->slasharguments 2/ $CFG->cachejs 3/ $CFG->themedesignermode 4/ $CFG->yuicomboloading 5/ ssl mode 6/ server type (IIS, Apache) 7/ proxy servers - cloudfare, squid, etc. In order to test this we need to test all permutations in all supported browsers and for all themes. I know it is going to be a pain, but the perf benefits of this change could be huge on some sites. What to look for: notices in PHP logs missing files in apache log errors in JS console missing images non-functional JS
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w19_MDL-32683_m23_publiccache

      Description

      https://developers.google.com/speed/docs/best-practices/caching

      1/ it should help FF to cache SSL
      2/ it should help proxy servers along the way
      3/ more files should be served from browser caches

      we could use it for: themes, yui, javascript, etc.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    25/Jun/12