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

@ -1,3 +1,8 @@
0.9.0
2013-01-25
Add cache-control directives
Set max Jetty to 6.99999
0.8
2012-03-10
fix comment in jetty.xml

View File

@ -11,7 +11,7 @@
<delete file="plugin/i2ptunnel.config" />
<!-- get version number -->
<buildnumber file="scripts/build.number" />
<property name="release.number" value="0.8" />
<property name="release.number" value="0.9.0" />
<!-- make the update xpi2p -->
<!-- this contains everything except i2ptunnel.config -->

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>

View File

@ -8,3 +8,4 @@ updateURL=http://stats.i2p/i2p/plugins/zzzot-update.xpi2p
websiteURL=http://zzz.i2p/forums/16
license=Apache 2.0
min-jetty-version=6
max-jetty-version=6.99999