Index: webapps/docs/config/filter.xml
===================================================================
--- webapps/docs/config/filter.xml (revision 965597)
+++ webapps/docs/config/filter.xml (working copy)
@@ -319,7 +319,7 @@
max-age directive of the Cache-Control header),
the response status code is not excluded by the directive
ExpiresExcludedResponseStatusCodes ,
- The Content-Type of the response matches one of the types
+ the Content-Type of the response matches one of the types
defined the in ExpiresByType directives or the
ExpiresDefault directive is defined.
@@ -446,8 +446,7 @@
</init-param>
- Note that this directive only has effect if ExpiresActive On has
- been specified. It overrides, for the specified MIME type only , any
+ It overrides, for the specified MIME type only , any
expiration date set by the ExpiresDefault directive.
@@ -483,13 +482,12 @@
org.apache.catalina.filters.ExpiresFilter.level = FINE
- Sample of initialization log message :
+ Sample of initialization log message:
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={
@@ -499,7 +497,7 @@
Sample of per-request log message where ExpiresFilter adds an
- expiration date
+ expiration date:
@@ -508,7 +506,7 @@
Sample of per-request log message where ExpiresFilter does not add
- an expiration date
+ an expiration date:
Index: test/org/apache/catalina/filters/TestExpiresFilter.java
===================================================================
--- test/org/apache/catalina/filters/TestExpiresFilter.java (revision 965597)
+++ test/org/apache/catalina/filters/TestExpiresFilter.java (working copy)
@@ -59,7 +59,6 @@
"modification plus 5 hours 3 minutes");
filterDef.addInitParameter("ExpiresByType image/jpg", "A10000");
filterDef.addInitParameter("ExpiresByType video/mpeg", "M20000");
- filterDef.addInitParameter("ExpiresActive", "Off");
filterDef.addInitParameter("ExpiresExcludedResponseStatusCodes",
"304, 503");
Index: java/org/apache/catalina/filters/ExpiresFilter.java
===================================================================
--- java/org/apache/catalina/filters/ExpiresFilter.java (revision 965597)
+++ java/org/apache/catalina/filters/ExpiresFilter.java (working copy)
@@ -110,43 +110,7 @@
* </web-app>
*
*
- * Configuration Parameters
- * ExpiresActive
- *
- * This directive enables or disables the generation of the Expires and
- * Cache-Control headers by this ExpiresFilter . If set to
- * Off , the headers will not be generated for any HTTP response. If set
- * to On or true , the headers will be added to served HTTP
- * responses according to the criteria defined by the
- * ExpiresByType <content-type> and ExpiresDefault
- * directives. Note that this directive does not guarantee that an
- * Expires or Cache-Control 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.
- *
- *
- * This parameter is optional, default value is true .
- *
- *
- * Enable filter
- *
- *
- *
- * <init-param>
- * <!-- supports case insensitive 'On' or 'true' -->
- * <param-name>ExpiresActive</param-name><param-value>On</param-value>
- * </init-param>
- *
- *
- * Disable filter
- *
- *
- *
- * <init-param>
- * <!-- supports anything different from case insensitive 'On' and 'true' -->
- * <param-name>ExpiresActive</param-name><param-value>Off</param-value>
- * </init-param>
- *
+ * Configuration Parameters
*
*
* ExpiresByType <content-type>
@@ -316,7 +280,7 @@
* max-age directive of the Cache-Control header),
* the response status code is not excluded by the directive
* ExpiresExcludedResponseStatusCodes ,
- * The Content-Type of the response matches one of the types
+ * the Content-Type of the response matches one of the types
* defined the in ExpiresByType directives or the
* ExpiresDefault directive is defined.
*
@@ -412,7 +376,6 @@
*
* 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={