Legend cache issue

Discussion created by komalf on Aug 18, 2011
Latest reply on Aug 24, 2011 by rnarayanan-esristaff
I am using ArcScripts http://arcscripts.esri.com/details.asp?dbid=16999 by Iain Campion to generate legend in JavaScript application.

The application works well and it generates legend only once. All subsequent request simply response by sending old image URL. The directory in which it generates is cleaned by ArcGIS server process so the application displays legend Label with brocken image URL.

I am using ArcServer 9.3.1 and for reason beyond my control can't upgrade.

So question is can I change location where legend image is generated. By default it grabs Output directory of map service. Is there any way to force application to send request every time. Please let me know if I am missing anyting.