I am facing a similar problem where in the JRE is caching my xml file. Is there a way to not use the random number approach and insert some type of the cache control header in the xml file itself so that i still have a parsable xml file and such that any changes to the xml files are reflected without disabling the cache?