Lines 110-152
Link Here
|
110 |
* </web-app> |
110 |
* </web-app> |
111 |
* </pre></code> |
111 |
* </pre></code> |
112 |
* |
112 |
* |
113 |
* <h2>Configuration Parameters</h2><h3> |
113 |
* <h2>Configuration Parameters</h2> |
114 |
* <tt>ExpiresActive</tt></h3> |
|
|
115 |
* <p> |
116 |
* This directive enables or disables the generation of the <tt>Expires</tt> and |
117 |
* <tt>Cache-Control</tt> headers by this <tt>ExpiresFilter</tt>. If set to |
118 |
* <tt>Off</tt>, the headers will not be generated for any HTTP response. If set |
119 |
* to <tt>On</tt> or <tt>true</tt>, the headers will be added to served HTTP |
120 |
* responses according to the criteria defined by the |
121 |
* <tt>ExpiresByType <content-type></tt> and <tt>ExpiresDefault</tt> |
122 |
* directives. Note that this directive does not guarantee that an |
123 |
* <tt>Expires</tt> or <tt>Cache-Control</tt> header will be generated. If the |
124 |
* criteria aren't met, no header will be sent, and the effect will be as |
125 |
* though this directive wasn't even specified. |
126 |
* </p> |
127 |
* <p> |
128 |
* This parameter is optional, default value is <tt>true</tt>. |
129 |
* </p> |
130 |
* <p> |
131 |
* <i>Enable filter</i> |
132 |
* </p> |
133 |
* |
134 |
* <code><pre> |
135 |
* <init-param> |
136 |
* <!-- supports case insensitive 'On' or 'true' --> |
137 |
* <param-name>ExpiresActive</param-name><param-value>On</param-value> |
138 |
* </init-param> |
139 |
* </pre></code> |
140 |
* <p> |
141 |
* <i>Disable filter</i> |
142 |
* </p> |
143 |
* |
144 |
* <code><pre> |
145 |
* <init-param> |
146 |
* <!-- supports anything different from case insensitive 'On' and 'true' --> |
147 |
* <param-name>ExpiresActive</param-name><param-value>Off</param-value> |
148 |
* </init-param> |
149 |
* </pre></code> |
150 |
* |
114 |
* |
151 |
* <h3> |
115 |
* <h3> |
152 |
* <tt>ExpiresByType <content-type></tt></h3> |
116 |
* <tt>ExpiresByType <content-type></tt></h3> |
Lines 316-322
Link Here
|
316 |
* <tt>max-age</tt> directive of the <tt>Cache-Control</tt> header),</li> |
280 |
* <tt>max-age</tt> directive of the <tt>Cache-Control</tt> header),</li> |
317 |
* <li>the response status code is not excluded by the directive |
281 |
* <li>the response status code is not excluded by the directive |
318 |
* <tt>ExpiresExcludedResponseStatusCodes</tt>,</li> |
282 |
* <tt>ExpiresExcludedResponseStatusCodes</tt>,</li> |
319 |
* <li>The <tt>Content-Type</tt> of the response matches one of the types |
283 |
* <li>the <tt>Content-Type</tt> of the response matches one of the types |
320 |
* defined the in <tt>ExpiresByType</tt> directives or the |
284 |
* defined the in <tt>ExpiresByType</tt> directives or the |
321 |
* <tt>ExpiresDefault</tt> directive is defined.</li> |
285 |
* <tt>ExpiresDefault</tt> directive is defined.</li> |
322 |
* </ol> |
286 |
* </ol> |
Lines 412-418
Link Here
|
412 |
* <code><pre> |
376 |
* <code><pre> |
413 |
* Mar 26, 2010 2:01:41 PM org.apache.catalina.filters.ExpiresFilter init |
377 |
* Mar 26, 2010 2:01:41 PM org.apache.catalina.filters.ExpiresFilter init |
414 |
* FINE: Filter initialized with configuration ExpiresFilter[ |
378 |
* FINE: Filter initialized with configuration ExpiresFilter[ |
415 |
* active=true, |
|
|
416 |
* excludedResponseStatusCode=[304], |
379 |
* excludedResponseStatusCode=[304], |
417 |
* default=null, |
380 |
* default=null, |
418 |
* byType={ |
381 |
* byType={ |