Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12644

JavaScript files are not productionized

Details

    Description

      The custom JavaScript files for the website are not minified, bundled, or productionized in any way. They're served with static names, e.g. language-switcher.js. As a result, the browser loads cached versions of the files, even after we deploy changes. We should minify and bundle the JS files, and then deploy them with a GUID in the filename.

       

      Hugo supports JavaScript building, so that might provide a solution.

       

      As an alternative fix, we could see if the config on the Cloud Storage bucket can be changed in some way to prevent the aggressive caching. The browser seems to reload JS files on the staging server, which could indicate a difference in config between the staging bucket and prod bucket.

      Attachments

        Issue Links

          Activity

            People

              AlexRodriguez Irwin Alejandro Rodirguez Ramirez
              pcoet David Huntsperger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h