greenlaw

ArcGIS Server 10.2 -  HTTP Cache Control functionality changed?

Discussion created by greenlaw on Aug 28, 2013
Latest reply on Aug 28, 2013 by greenlaw
I just installed ArcGIS Server 10.2 and noticed that my JSAPI viewer no longer interacts with my services in the same way.  My dynamic map services are time-enabled and my viewer includes a time slider. 

Previously, I could hit the animate button or use my scroll wheel to go through each time-step and pre-download each image; once each time-step had been downloaded once, I could animate very smoothly (especially noticeable when scrolling with mouse wheel). 

Now, it seems ArcGIS Server 10.2 has changed the HTTP header sent with each image to specify:

Cache-Control:max-age=0,must-revalidate


Previously, the Cache-Control, header included a nonzero value for 'max-age' and did not include 'must-revalidate', meaning that my browser was able to use its cache to quickly display images that had already been downloaded.

The implications of this are many more HTTP requests (even if most of them result in HTTP 304 "Not Modified"), and more importantly animation does not work like it used to, and I can no longer scroll through my preloaded time-steps quickly; there is now a delay when the map's time extent is changed, even if the image has already been downloaded, because my browser has to confirm with AGS that the underlying image has not changed.

Is there a workaround?  Maybe some obscure service configuration parameter or JSAPI option?  disableClientCaching is already false in my viewer.

Please Help!
Jason

Outcomes