Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3235

Add method to force-reload all static resources during production

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12.3
    • Component/s: Layout
    • Labels:
      None

      Description

      Static resources are delivered with an URL that is unique within each releases. This makes sure that when an update is installed, all static resources are reloaded by the browser and no browser cached version is used. This is necessary because in practice it is not possible to force browsers to not use a cached version.

      The problem is that when a system layout is being modified in between a new release and e.g. new images are added to the theme, the browser will still show the old images because of browser side caching. To force browsers to reload the theme, the theme URL must be changed. 

      This issue offers a button to add some junk to the URL so browsers are forced to load all static resources again. The junk (actually an integer) is only held in RAM. Once the server is reloaded, the URL returns back to the original value. But this is not a problem as there is no need to restart OpenOLAT unless a new release is installed

       

        Attachments

          Activity

            People

            Assignee:
            gnaegi Florian Gnägi
            Reporter:
            gnaegi Florian Gnägi
            Tester:
            Stéphane Rossé
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m