Jump to: navigation, search

Configuring HTTP Caching

By default, HTTP Caching is disabled in GMS.

To configure caching, you must first start and stop GMS. Tell me why

Then, you can configure caching in GMS by editing the following file, located in the WEB-INF directory of your GMS installation: <GMS_HOME>/work/.../webapp/WEB-INF/servlet-context.xml

You should set the cacheSeconds property value to 3600 for instance (defaut is 0).

<bean id="webContentInterceptor"
class="org.springframework.web.servlet.mvc.WebContentInterceptor">
<property name="cacheSeconds" value="3600" />
<property name="useExpiresHeader" value="true" />
<property name="useCacheControlHeader" value="true" />
<property name="useCacheControlNoStore" value="true" />
</bean>

Then, you should restart GMS.

Tip
You must set this option to an appropriate value in case of heavy traffic between ORS and GMS.
This page was last edited on April 11, 2018, at 19:03.
Comments or questions about this documentation? Contact us for support!