I'm working with a set of files that are getting updated automatically multiple times a day and being called by two different scripts with a similar purpose. I need browsers to not cache them as they are always changing.
The current Javascript code looks like this:
profile_filename: window.location.origin + "/pdf/2021GraduateForm-4-29-2021v1.csv",
And the goal is to make the file look more like this but using a random value each time:
profile_filename: window.location.origin + "/pdf/2021GraduateForm-4-29-2021v1.csv?123456789",
Does anyone have any advice for how I can make this change, where '123456789' would be something random. Most of the documentation I've seen is for PHP and doesn't include the 'window.location' that I'm using.