Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38882

Avoid browser cache busting after Jenkins restart

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • atlantic, tasman

      Atm, the browser caches JS resources via normal cache control and expiry headers. However, the resources are all bundled as adjuncts and adjunct urls have a hash that gets changed after restart, which means all resources need to be reloaded after restart.

      See can we come up with a way of loading the resources from URLs that do not change after a restart.

      jamesdumay has already done some experimenting with a replacement ResourceManager. See PR-587.

      Other possibilities ...

      • Look at the use of AssetManager in Jenkins core
      • Look at bundling resources in the plugins under the webapp dir (no hash in these URLs).

      Note that this will most probably require changes to js-builder and js-modules so that we can "plug in" different resource resolution algos e.g. one specific to Blue Ocean and whatever we do above.

          [JENKINS-38882] Avoid browser cache busting after Jenkins restart

          Tom FENNELLY created issue -
          Tom FENNELLY made changes -
          Epic Link New: JENKINS-37957 [ 174099 ]
          Tom FENNELLY made changes -
          Description Original: Investigate the posibility of using the browsers localStorage to store/cache CSS and apply it from there by embedding it in the page (Vs linking via URL). New: Investigate the possibility of using the browsers localStorage to store/cache JavaScript and apply it from there by evaluating it in the page (Vs linking via URL in a script tag).
          Tom FENNELLY made changes -
          Link New: This issue is related to JENKINS-38881 [ JENKINS-38881 ]
          Michael Neale made changes -
          Sprint New: atlantic [ 106 ]
          Tom FENNELLY made changes -
          Link New: This issue is related to JENKINS-38253 [ JENKINS-38253 ]
          James Dumay made changes -
          Sprint Original: atlantic [ 106 ] New: atlantic, indian [ 106, 126 ]
          Michael Neale made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Sprint Original: atlantic, indian [ 106, 126 ] New: atlantic [ 106 ]
          James Dumay made changes -
          Rank New: Ranked higher

            tfennelly Tom FENNELLY
            tfennelly Tom FENNELLY
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: