Title: Confluence: Force browsers to load the Javascript(jquery) changes with out manual hard refresh
Tags: javascript;jquery;confluence
Question: I am using Jquery(in theme configuration) as explained here to Hide/Show some elements in the Confluence Wiki Pages.
The changes in this java-script is not reflected unless I do a hard refresh on the browser.
As it is not possible to make all the users to do manual hard refresh on their browsers, is there a way in confluence to force the browser to update the local javascript?
Comment: Just append a timestamp to the js filename so the browser won't cache the file, assuming this is what is causing the user to do a manual hard refresh of their browser.  `filename.js?nocache=currenttimestamp`  then you can just refresh the page with `location.reload()`

Comment: Off topic: be careful with jQuery, as Atlassian uses his own jQuery wrapper "AJS".

Comment: Give the file a new filename.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 3, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2016:00:04/05/16', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<javascript><jquery><confluence>', 'Title': 'Confluence: Force browsers to load the Javascript(jquery) changes with out manual hard refresh', 'ViewCount': 156, 'id': 36428907, 'user_AboutMe': '', 'user_AccountId': 1189960.0, 'user_DisplayName': 'Betsen', 'user_Reputation': 65.0, 'user_Views': 3.0, 'user_id': 1163008.0}}