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

Optimize static resource fetch

    XMLWordPrintable

Details

    • atlantic

    Description

      • blueocean.js (642KB), 370 ms to load: is loaded on each page (dashboard, run details, pipeline)
      • Cache expiry for assets that never change is very low (e.g. fonts)
      • And so are most other JS files
      • If these are cached (not fetched for each page can easily save few secs)

      For details see JENKINS-38079.

      Attachments

        Issue Links

          Activity

            jamesdumay James Dumay added a comment -

            vivek font caching too. Lots of immutable resources have very low cache expiry (I think 24 hours)

            jamesdumay James Dumay added a comment - vivek font caching too. Lots of immutable resources have very low cache expiry (I think 24 hours)
            cliffmeyers Cliff Meyers added a comment -

            I know all assets are fetched via the Jenkins "adjuncts" which includes a hash in the URL. Just curious, what controls the generation of this hash?

            cliffmeyers Cliff Meyers added a comment - I know all assets are fetched via the Jenkins "adjuncts" which includes a hash in the URL. Just curious, what controls the generation of this hash?
            jamesdumay James Dumay added a comment -

            I suspect tfennelly might know something about this

            jamesdumay James Dumay added a comment - I suspect tfennelly might know something about this
            michaelneale Michael Neale added a comment -

            cliffmeyers it is generated on startup (the hash) - so each restart will make things reload

            michaelneale Michael Neale added a comment - cliffmeyers it is generated on startup (the hash) - so each restart will make things reload
            michaelneale Michael Neale added a comment -

            kzantow was also going to take a look at this with Tom

            michaelneale Michael Neale added a comment - kzantow was also going to take a look at this with Tom
            kzantow Keith Zantow added a comment -

            tfennelly I'm happy to take on an optimization to the BO plugins' CSS. It's not as critical of a thing for performance reasons, but other reasons I'd like to change the behavior and optimize at the same time.

            kzantow Keith Zantow added a comment - tfennelly I'm happy to take on an optimization to the BO plugins' CSS. It's not as critical of a thing for performance reasons, but other reasons I'd like to change the behavior and optimize at the same time.
            tfennelly Tom FENNELLY added a comment -

            We added cache-control headers for all adjunct and static URLs (covering most JS, CSS , fonts etc). Time will tell us if that's helping.

            tfennelly Tom FENNELLY added a comment - We added cache-control headers for all adjunct and static URLs (covering most JS, CSS , fonts etc). Time will tell us if that's helping.
            michaelneale Michael Neale added a comment -

            Right so the remaining issue is more about the multiple loading of blueocean.js - (is that still a valid problem?)

            michaelneale Michael Neale added a comment - Right so the remaining issue is more about the multiple loading of blueocean.js - (is that still a valid problem?)
            tfennelly Tom FENNELLY added a comment -

            michaelneale no, that should not be happening unless you hit a hard reload. It's expected that you guys out in the sticks in Aus are supposed to get the greatest benefit from this, so let us know.

            tfennelly Tom FENNELLY added a comment - michaelneale no, that should not be happening unless you hit a hard reload. It's expected that you guys out in the sticks in Aus are supposed to get the greatest benefit from this, so let us know.
            michaelneale Michael Neale added a comment - - edited

            it seems a lot better on the whole, but that is subjective.
            In the ticket description, vivek mentions multiple loading of blueocean.js though ... that is what I meant

            michaelneale Michael Neale added a comment - - edited it seems a lot better on the whole, but that is subjective. In the ticket description, vivek mentions multiple loading of blueocean.js though ... that is what I meant
            tfennelly Tom FENNELLY added a comment -

            I can only assume he was talking about the multiple If-Modified-After request. These are not happening anymore.

            tfennelly Tom FENNELLY added a comment - I can only assume he was talking about the multiple If-Modified-After request. These are not happening anymore.
            michaelneale Michael Neale added a comment -

            yep, close this.

            michaelneale Michael Neale added a comment - yep, close this.

            People

              tfennelly Tom FENNELLY
              vivek Vivek Pandey
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: