You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/11/18 10:10:23 UTC
[tomcat] branch 9.0.x updated: Add docs for using CacheStrategy
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new b9640d1 Add docs for using CacheStrategy
b9640d1 is described below
commit b9640d1f77f6c20dfbf9593ccbe52880b41bf67f
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org