I'm currently working on a web application that makes use of JQuery. Within my javascript code, there's a function triggered by an onclick event in the HTML which executes this line:
$('#secondPage').load('pages/calendar.html');
The calendar.html file being loaded contains javascript that fetches data from a .json file. The issue arises when navigating away from the page using javascript and then returning back to the calendar.html page - it remains cached and does not refresh with new data from the .json file.
Is there a method to include something in the code that would trigger a refresh on that page or retrieve fresh data from the .json? Thank you!