* </web-app>
* </pre></code>
*
- * <h2>Configuration Parameters</h2><h3>
- * <tt>ExpiresActive</tt></h3>
- * <p>
- * This directive enables or disables the generation of the <tt>Expires</tt> and
- * <tt>Cache-Control</tt> headers by this <tt>ExpiresFilter</tt>. If set to
- * <tt>Off</tt>, the headers will not be generated for any HTTP response. If set
- * to <tt>On</tt> or <tt>true</tt>, the headers will be added to served HTTP
- * responses according to the criteria defined by the
- * <tt>ExpiresByType <content-type></tt> and <tt>ExpiresDefault</tt>
- * directives. Note that this directive does not guarantee that an
- * <tt>Expires</tt> or <tt>Cache-Control</tt> header will be generated. If the
- * criteria aren't met, no header will be sent, and the effect will be as
- * though this directive wasn't even specified.
- * </p>
- * <p>
- * This parameter is optional, default value is <tt>true</tt>.
- * </p>
- * <p>
- * <i>Enable filter</i>
- * </p>
- *
- * <code><pre>
- * <init-param>
- * <!-- supports case insensitive 'On' or 'true' -->
- * <param-name>ExpiresActive</param-name><param-value>On</param-value>
- * </init-param>
- * </pre></code>
- * <p>
- * <i>Disable filter</i>
- * </p>
- *
- * <code><pre>
- * <init-param>
- * <!-- supports anything different from case insensitive 'On' and 'true' -->
- * <param-name>ExpiresActive</param-name><param-value>Off</param-value>
- * </init-param>
- * </pre></code>
+ * <h2>Configuration Parameters</h2>
*
* <h3>
* <tt>ExpiresByType <content-type></tt></h3>
* <tt>max-age</tt> directive of the <tt>Cache-Control</tt> header),</li>
* <li>the response status code is not excluded by the directive
* <tt>ExpiresExcludedResponseStatusCodes</tt>,</li>
- * <li>The <tt>Content-Type</tt> of the response matches one of the types
+ * <li>the <tt>Content-Type</tt> of the response matches one of the types
* defined the in <tt>ExpiresByType</tt> directives or the
* <tt>ExpiresDefault</tt> directive is defined.</li>
* </ol>
* <code><pre>
* Mar 26, 2010 2:01:41 PM org.apache.catalina.filters.ExpiresFilter init
* FINE: Filter initialized with configuration ExpiresFilter[
- * active=true,
* excludedResponseStatusCode=[304],
* default=null,
* byType={
disabled by default. Based on a patch by Yair Lenga. (markt)
</add>
<add>
- <bug>48998</bug>: Add the ExpiresFilter, a port of the httpd mod_expires
- module. Patch provided by Cyrille Le Clerc. (markt)
+ <bug>48998</bug>, <bug>49617</bug>: Add the ExpiresFilter, a port of the
+ httpd mod_expires module. Patch provided by Cyrille Le Clerc. (markt)
</add>
<fix>
<bug>49030</bug>: When initializing/starting/stopping connectors and
<tt>max-age</tt> directive of the <tt>Cache-Control</tt> header),</li>
<li>the response status code is not excluded by the directive
<tt>ExpiresExcludedResponseStatusCodes</tt>,</li>
- <li>The <tt>Content-Type</tt> of the response matches one of the types
+ <li>the <tt>Content-Type</tt> of the response matches one of the types
defined the in <tt>ExpiresByType</tt> directives or the
<tt>ExpiresDefault</tt> directive is defined.</li>
</ol>
</init-param>
</source>
<p>
- Note that this directive only has effect if <tt>ExpiresActive On</tt> has
- been specified. It overrides, for the specified MIME type <i>only</i>, any
+ It overrides, for the specified MIME type <i>only</i>, any
expiration date set by the <tt>ExpiresDefault</tt> directive.
</p>
<p>
org.apache.catalina.filters.ExpiresFilter.level = FINE
</source>
<p>
- Sample of initialization log message :
+ Sample of initialization log message:
</p>
<source>
Mar 26, 2010 2:01:41 PM org.apache.catalina.filters.ExpiresFilter init
FINE: Filter initialized with configuration ExpiresFilter[
- active=true,
excludedResponseStatusCode=[304],
default=null,
byType={
</source>
<p>
Sample of per-request log message where <tt>ExpiresFilter</tt> adds an
- expiration date
+ expiration date:
</p>
<source>
</source>
<p>
Sample of per-request log message where <tt>ExpiresFilter</tt> does not add
- an expiration date
+ an expiration date:
</p>
<source>