Exposing Cache Control Headers for Map Display
By default, Spectrum Technology Platform web services use the following HTTP headers for caching:
Cache-Control: no-cache,no-store,no-transform,must-revalidate
Expires: Wed, 07 Jan 2015 15:38:03 GMT //48 hours in the past
Pragma: no-cache
These HTTP headers are not appropriate for the Map Tiling Service. You can disable these default HTTP headers and set the HTTP cache behavior in the headers that are defined in the individual web services instead.
Note: If you are applying this change to a cluster you must repeat the following procedure on
each node in the cluster.
To disable the default HTTP cache control headers:
- Stop the Spectrum Technology Platform server.
-
In a text editor, open the following file:
SpectrumDirectory\server\conf\spectrum-container.properties
-
Change the following property from true to false:
spectrum.http.cache.control.headers.enable=false
- Save and close the properties file.
- Start the Spectrum Technology Platform server.