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

Optimize static resource fetch

    XMLWordPrintable

    Details

    • Epic Link:
    • Sprint:
      atlantic
    • Similar Issues:

      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

            Hide
            jamesdumay James Dumay added a comment -

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

            Show
            jamesdumay James Dumay added a comment - Vivek Pandey font caching too. Lots of immutable resources have very low cache expiry (I think 24 hours)
            Hide
            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?

            Show
            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?
            Hide
            jamesdumay James Dumay added a comment -

            I suspect Tom FENNELLY might know something about this

            Show
            jamesdumay James Dumay added a comment - I suspect Tom FENNELLY might know something about this
            Hide
            michaelneale Michael Neale added a comment -

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

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

            Keith Zantow was also going to take a look at this with Tom

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

            Tom FENNELLY 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.

            Show
            kzantow Keith Zantow added a comment - Tom FENNELLY 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.
            Hide
            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.

            Show
            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.
            Hide
            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?)

            Show
            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?)
            Hide
            tfennelly Tom FENNELLY added a comment -

            Michael Neale 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.

            Show
            tfennelly Tom FENNELLY added a comment - Michael Neale 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.
            Hide
            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

            Show
            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
            Hide
            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.

            Show
            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.
            Hide
            michaelneale Michael Neale added a comment -

            yep, close this.

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: