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

Not all adjunct JavaScript is being coming directly from the browser cache

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • blueocean-plugin
    • None
    • tasman, frank, tethys

      I notice on my laptop now that not all of the javascript adjuncts are coming directly from the cache. My browser (chome) is issuing If-Modified-Since requests for a few of the resources (including blueocean.js), while other resources are coming directly from the cache as expected.

      This is weird for sure. I can't see why the browser is issuing the If-Modified-Since requests for some resources and then getting the other resources from the cache. I can see the resources in the browser cache (chrome://cache/), yet the browser is still issuing the request and getting the 304 response. I am 100% sure everything was coming from the cache when we made the changes to set the Cache-Control header, so not sure what has changed. We want to eliminate those requests.

          [JENKINS-39747] Not all adjunct JavaScript is being coming directly from the browser cache

          James Dumay added a comment -

          tfennelly nice find. Ill pull this into next weeks sprint.

          James Dumay added a comment - tfennelly nice find. Ill pull this into next weeks sprint.

          Tom FENNELLY added a comment -

          I was talking out of my butt cheeks on this one ... I tested ci.blueocean.io and it's working just fine (see screenshot). I bet I created this JIRA when running the plugin via HPI, in which case we turn off the caching. Only explanation I can come up with.

          Tom FENNELLY added a comment - I was talking out of my butt cheeks on this one ... I tested ci.blueocean.io and it's working just fine (see screenshot). I bet I created this JIRA when running the plugin via HPI, in which case we turn off the caching. Only explanation I can come up with.

          James Dumay added a comment -

          Good to know - thanks for looking into it!

          James Dumay added a comment - Good to know - thanks for looking into it!

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

              Created:
              Updated:
              Resolved: