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

Make latex files cached public immutable so can be served by a CDN

XMLWordPrintable

    • MOODLE_402_STABLE
    • MOODLE_403_STABLE
    • MDL-77797-latex-headers
    • Hide
      1. Turn on the Tex notation filter
      2. Turn off Mathjax
      3. Edit any WYSIWYG text like the assignment description and put in some latex like $$ \sqrt{x + y} $$
      4. Save changes
      5. Open developer tools in your browser and go to Network tab
      6. Reload the page and confirm that you see a pix.php file in Network tabĀ  eg
        https://master.localhost/filter/tex/pix.php/48d46c3c756bf6abb5bfeb1fbdd08740.gif
      7. Click on that file in Network tab
      8. Confirm that it has long term caching headers:
        Cache-Control: public, max-age=31536000, no-transform, immutable
      Show
      Turn on the Tex notation filter Turn off Mathjax Edit any WYSIWYG text like the assignment description and put in some latex like $$ \sqrt{x + y} $$ Save changes Open developer tools in your browser and go to Network tab Reload the page and confirm that you see a pix.php file in Network tabĀ  eg https://master.localhost/filter/tex/pix.php/48d46c3c756bf6abb5bfeb1fbdd08740.gif Click on that file in Network tab Confirm that it has long term caching headers: Cache-Control: public, max-age=31536000, no-transform, immutable

      Each pix.php file is referenced by a hash of the content that generated it so this should be immutable and so marked as such so it can be cached and served by a cdn / varnish

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Misha Golenkov Misha Golenkov
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 17 minutes
                1h 17m

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