This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 815273a Add docs for using CacheStrategy 815273a is described below commit 815273a6c9aceb014210515d02b2df20572deae9 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Nov 18 10:06:57 2021 +0000 Add docs for using CacheStrategy --- webapps/docs/config/resources.xml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/webapps/docs/config/resources.xml b/webapps/docs/config/resources.xml index 81108d6..12e74cb 100644 --- a/webapps/docs/config/resources.xml +++ b/webapps/docs/config/resources.xml @@ -180,8 +180,8 @@ <p>A web application's main resources are defined by the <strong>docBase</strong> defined for the <a href="context.html">Context</a>. - Additional resources may be made available to the web application by defining - one or more nested components.</p> + Additional configuration settings and/or resources may be made available to + the web application by defining one or more nested components.</p> <h3>PreResources</h3> @@ -323,6 +323,23 @@ <code>FileResourceSet</code> mapped to <code>/WEB-INF/lib</code>. </p> + <h3>Cache Strategy</h3> + + <p>Additional control over the caching of static resources can be obtained by + configuring a custom cache strategy. To configure a custom cache straegy, + nest a <CacheStrategy> element inside the <Resources> element + with the following attributes:</p> + + <attributes> + + <attribute name="className" required="true"> + <p>Java class name of the implementation to use. This class must implement + the <code>org.apache.catalina.WebResourceRoot$CacheStrategy</code> + interface.</p> + </attribute> + + </attributes> + </section> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org