Add cache-control directives
  Set max Jetty to 6.99999
This commit is contained in:
zzz
2013-01-25 20:56:04 +00:00
parent 52d8e26ffc
commit ce7562c547
5 changed files with 17 additions and 3 deletions

View File

@ -11,6 +11,16 @@ to serve static html files and images.
<Configure class="org.mortbay.jetty.servlet.Context">
<Set name="contextPath">/</Set>
<Set name="resourceBase">$PLUGIN/eepsite/docroot/</Set>
<Call name="setInitParams">
<Arg>
<Map>
<Entry>
<Item>org.mortbay.jetty.servlet.Default.cacheControl</Item>
<Item>max-age=3600,public</Item>
</Entry>
</Map>
</Arg>
</Call>
<Call name="addServlet">
<Arg>org.mortbay.jetty.servlet.DefaultServlet</Arg>
<Arg>/</Arg>

View File

@ -153,12 +153,10 @@
<param-name>useFileMappedBuffer</param-name>
<param-value>true</param-value>
</init-param>
<!--
<init-param>
<param-name>cacheControl</param-name>
<param-value>max-age=3600,public</param-value>
</init-param>
-->
<load-on-startup>0</load-on-startup>
</servlet>