Always include a ? at the end of the include for the js file. However, this will prevent ANY caching of the file, not just per release
Same as above, but use a version number instead of a timestamp. E.g., abc.js?v=2.1
1 has the benefit of not being "forgotten" in a new release. #2 is less thrashing, since it will still allow the browser to cache, but we have to update the version number, on each "release". Right now, I don't believe we actually have true releases, and its just when a new version is deployed to the server, correct? If that's the case, maybe we should work on formalizing the release process first, and then tackle this one right after (which would then be super quick to change)
@joefutrelle The two options we have are:
1 has the benefit of not being "forgotten" in a new release. #2 is less thrashing, since it will still allow the browser to cache, but we have to update the version number, on each "release". Right now, I don't believe we actually have true releases, and its just when a new version is deployed to the server, correct? If that's the case, maybe we should work on formalizing the release process first, and then tackle this one right after (which would then be super quick to change)