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

admin/tool/mobile/mobile.webmanifest.php sets cookies and has poor caching headers

      Was just trawling the logs for some sites and noticed that this page was one of the most requested urls which seemed very weird and so did a bit of digging. It was being loaded on every single page for every single person and basically adds nothing of value to the UX unless you happen to then bookmark the page and then it check this metadata for the offline experience, even though moodle doesn't even support offline web stuff. So it's just wasted cpu cycles.

      1. In chrome open dev tools > network, and add the column for Set-Cookies
      2. Turn on the config for:
        enablemobilewebservice
        enablesmartappbanners
      3. Load any page in chrome
      4. Note that the web manifest is reloaded on every page view, ie its not cached even though it is essentially static or extremely slow moving data
      5. Note that the request has fresh new session cookies sent on every request

       

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Tomo Tsuyuki Tomo Tsuyuki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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