Thanks a lot in advance.
I am facing a serious problem with IHS(1.3) and WAS5.1.
Actually I have configured IHS with WAS and kept some static content on IHS folder.
And when I try http://localhost/test.js it is showing me old JS file but if I try http://localhost:9080/test.js it is showing me new code.
I think some caching is happening.
Even I tried by doing cache related browser settings but no use.
In some cases after some time the changes are showing but not every time.
Please help me.
I've run into these types of caching issues before, and they're difficult to solve. Here's a workaround that i use: Just append a parameter with a different version number to the URL each time you change the js file. For example: http://localhost/test.js?version=2 It's ignored, but it usually does force the browser and the web server to get a new copy of the file.
The trouble with caching problems is that it's hard to tell what entity is caching your file. Is it the browser? the ISP? the web server? the app server? Sure, there are ways to check each of these areas and try to stop them from caching, but by adding a parameter to the URL as I suggested, each of the above knows to delete its cache and request a new copy from the server. What I'm suggesting is that the first time you change it, the url is test.js?version=1, the second time you change it, it's test.js?version=2, etc.