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.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on April 11, 2018, at 11:03.