Map Service GetCacheControlInfo method

Gets the cache control information for a given map.  Primarily used to determine if client caching is allowed.

 

GetCacheControlInfo(string MapName)

 

Parameter

Description

MapName

The map name (data frame) on which to return cache control information.

 

 

Return Value

 

A CacheControlInfo object.   If the map service is not cached, all properties will be null.

 

Remarks

 

For a client to be able to cache map tiles, caching must be enabled on the service the client must be able to manage a local cache.  To determine if a service is cachable, use the IsFixedScaleMap() method on the MapServer proxy.   The ability to manage a local cache is internal to many ESRI desktop products designed to consume ArcGIS Server Web services, such as ArcGIS ArcMap and ArcGIS Explorer.  Using a client cache will often enhance user interactivity with a ArcGIS Server map service.   Map image tiles that have already been accessed can be stored and retrieved locally, which is generally faster than generating a Web request to retrieve a map image tile from a remote server.   Leveraging this capability in a custom client application will require custom implementation - the SOAP API does not manage this for you.      

 

Examples

C#

VB.NET

Java