6.1.2.3.2. Can I manage 'cache-control' value for different media-types from server configuration ?

Use "cache-control" configuration parameter.

The value of this parameter must contain colon-separated pairs "MediaType:cache-control value"

For example, if you need to cache all text/xml and text/plain files for 5 minutes (300 sec.) and other text/\* files for 10 minutes (600 sec.), use the next configuration:


<component>
   <type>org.exoplatform.services.jcr.webdav.WebDavServiceImpl</type>
   <init-params>
      <value-param>
         <name>cache-control</name>
         <value>text/xml,text/plain:max-age=300;text/*:max-age=600;</value>
      </value-param>
   <init-params>
<component>
Copyright ©2012. All rights reserved. eXo Platform SAS