I have an external jsfile which only has 2 simple functions:
It all went well, until I edit the function go(). I simply omit that function, restart the apache, but the message "go" still appears. Is the js file cached and somehow not refreshed even after apache restarts? thanks
You might want to clear your browser cache and also set the browser to reload the page from the server and not from its cache.
Joined: Oct 31, 2011
Is it possible to do the settings programmatically? It's not always possible for the client to remember this. Or even better, is there anyway that the container compare the requested js and see if the js file has been updated. if it's updated, then resend the js to browser, if not, let the browser load from cache. thanks
Well thanks for bringing that to my notice. In a hurry to post a reply I guess it slipped through. Apologies....
Now from JSP or from Servlet/Action when I set 'no-cache' and 'Expires' it would mean that the client browser would recognize that the page needs to be loaded from the server and not from the cache, correct? And my understanding is that using both of these would enforce a server call for rendering the page. (A server call would mean that all resources associated with the page - including scripts - would be reloaded.)
I might learn something here so please be kind enough to correct in case I am wrong.