I see this strange behavior (or maybe I'm missing something). I have WebSphere 8.5. Deployed EAR. It works great.
Instead of repackaging and deploying each time for minor changes, I simply copy the js and CSS files directly to the Explos Websphere folder and overwrite the existing files. I see that changes are reflected.
I just updated the JS file and added a couple of jQuery functions and copied the file as above. Now, when I refresh the page, I see the updated code (which is located somewhere in the middle of the file). however, the js file does not load completely in all three browsers (latest versions of IE8, Chrome and FF). This gets cut off in the last 10 lines.
The file has 1784 lines. Not sure if there is a size limit on the browser side, or if WebSphere is messing with it or something else is happening. Any ideas?
I checked the js file that I copied to the Exploded WebSphere folder. It has a complete code.
Please note that there are some more JS files on the page (jQuery and other files) in addition to this.
Edit:
I think WebSphere stores the file size somewhere (maybe?) And only sends that size each time if there is no clean deployment or restart (?).
I deleted a few lines of updated code. Now the browser loads exactly the number of extra lines of code. As soon as I completely delete my code, it downloads the full file. (This is not a problem with the code, though).
Is there any caching that needs to be cleared in WebSphere?