I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 96cf1d60 authored by zzz's avatar zzz
Browse files

* Jetty: Fix eepsite and webapp cache control directives.

  Eepsite fix for new installs only.
  Fix i2psnark BasicServlet javadoc about param prefix.
  (ticket #1128)
parent 3aa33378
No related branches found
No related tags found
No related merge requests found
......@@ -67,9 +67,8 @@ import net.i2p.util.SystemVersion;
* The default servlet.
* This servlet, normally mapped to /, provides the handling for static
* content, OPTION and TRACE methods for the context.
* The following initParameters are supported, these can be set either
* on the servlet itself or as ServletContext initParameters with a prefix
* of org.mortbay.jetty.servlet.Default. :
* The following initParameters are supported, these can be set
* on the servlet itself:
* <PRE>
*
* resourceBase Set to replace the context resource base
......
......@@ -41,7 +41,7 @@ public class WebAppStarter {
static {
//_log = ContextHelper.getContext(null).logManager().getLog(WebAppStarter.class); ;
// see DefaultServlet javadocs
String pfx = "org.mortbay.jetty.servlet.Default.";
String pfx = "org.eclipse.jetty.servlet.Default.";
INIT_PARAMS.put(pfx + "cacheControl", "max-age=86400");
INIT_PARAMS.put(pfx + "dirAllowed", "false");
}
......
......@@ -12,7 +12,7 @@ to serve static html files and images.
<Set name="contextPath">/</Set>
<Set name="resourceBase">./eepsite/docroot/</Set>
<Call name="setInitParameter">
<Arg>cacheControl</Arg>
<Arg>org.eclipse.jetty.servlet.Default.cacheControl</Arg>
<Arg>max-age=3600,public</Arg>
</Call>
<Call name="setMimeTypes">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment