From: Rich Bowen Date: Sat, 2 May 2026 22:26:58 +0000 (+0000) Subject: mod_expires: document wildcard sub-type matching in ExpiresByType (Bug 69257) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b7255acec0eec91168644bae3572bef562d28ec;p=thirdparty%2Fapache%2Fhttpd.git mod_expires: document wildcard sub-type matching in ExpiresByType (Bug 69257) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933749 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_expires.xml b/docs/manual/mod/mod_expires.xml index 2f356ae890..4fe207afb6 100644 --- a/docs/manual/mod/mod_expires.xml +++ b/docs/manual/mod/mod_expires.xml @@ -208,6 +208,23 @@ ExpiresByType text/html M604800

You can also specify the expiration time calculation using an alternate syntax, described earlier in this document.

+ +

The MIME type can use a wildcard for the sub-type, for + example image/*. This will match any type under + that major type. When a request's content type does not match + a specific ExpiresByType entry, a + wildcard entry for the major type is checked before falling + back to the ExpiresDefault.

+ + Example with wildcard: + +ExpiresActive On +# All images expire after 1 month +ExpiresByType image/* "access plus 1 month" +# Override specifically for GIF +ExpiresByType image/gif "access plus 1 week" + +