I am currently developing a Java EE enterprise portal that relies heavily on jQuery-AJAX requests for user navigation. Due to the size of the navigation and the potentially lengthy AJAX calls, I have implemented
cache: true
to allow the browser to store and retrieve results from its cache for repetitive requests.
While this works well for most scenarios, there are times when I need the browser to refresh the requests directly from the server, such as when navigation entries change or the frontend language is updated.
Although I could simply use "cache: false" to bypass the browser cache, I would prefer a method that prompts the browser to update outdated cached responses with fresh data from the server.
Are there any options available on either the frontend or backend side, that can be added to the requests or their results, in order to instruct the browser to discard outdated responses and retrieve new values?