Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-3495

Dynamic plugin requests stale files after upgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.14.0
    • 4.12
    • Management Console
    • None
    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, after upgrading a plugin image, old plugin files were still requested. With this update, the `?cacheBuster=${getRandomChars()}` query string was added when `plugin-entry.js` resources are requested. (link:https://issues.redhat.com/browse/OCPBUGS-3495[*OCPBUGS-3495*])
      Show
      * Previously, after upgrading a plugin image, old plugin files were still requested. With this update, the `?cacheBuster=${getRandomChars()}` query string was added when `plugin-entry.js` resources are requested. (link: https://issues.redhat.com/browse/OCPBUGS-3495 [* OCPBUGS-3495 *])
    • Bug Fix
    • Done

      Description of problem:
      After upgrading a plugin image the browser continues to request old plugin files

      How reproducible:
      100%

      Steps to Reproduce:
      1. Build and deploy a plugin generated from console-plugin-template repo
      2. open one of the plugin pages in the browser
      4. Make a change in the code of that page, rebuild and deploy a new image
      5. Try to view this page in firefox - you'll get a 404 error. In chrome you'll get the old page

      The root cause is
      The plugin js file names are auto generated, so the new image has different js file names.
      But the plugin-entry.js filename remains the same, the file is cached by default and continues to request the old files

            vszocs@redhat.com Vojtech Szocs
            brotman@redhat.com Bat-Zion Rotman
            Yanping Zhang Yanping Zhang
            Olivia Payne Olivia Payne
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: