From 68e8bd21ce426cd4467c7c87cc68e9cdb63e6dea Mon Sep 17 00:00:00 2001 From: Ken Coar Date: Tue, 11 Nov 1997 21:35:08 +0000 Subject: [PATCH] Add documentation for alternate mod_expires time syntax. PR: 1238 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@79555 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_expires.html | 90 +++++++++++++++++++++++++++++++- 1 file changed, 89 insertions(+), 1 deletion(-) diff --git a/docs/manual/mod/mod_expires.html b/docs/manual/mod/mod_expires.html index 3ec53d1156..35a8f4a657 100644 --- a/docs/manual/mod/mod_expires.html +++ b/docs/manual/mod/mod_expires.html @@ -154,6 +154,13 @@ >ExpiresDefault directive.

+

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


ExpiresDefault directive @@ -178,8 +185,89 @@ HREF="#expiresbytype" >ExpiresByType directive. See the description of that directive for details about - the syntax of the argument. + the syntax of the argument, and the + alternate syntax + description as well. +

+
+

+ Alternate Interval Syntax +

+

+ The + ExpiresDefault + and + ExpiresByType + directives can also be defined in a more readable syntax of the form: +

+
+
ExpiresDefault "<base> [plus] {<num> <type>}*" +
+ ExpiresByType type/encoding "<base> [plus] {<num> <type>}*"
+
+
+

+ where <base> is one of: +

+ +
  • access +
  • +
  • now (equivalent to 'access') +
  • +
  • modification +
  • +
    +

    +

    + The 'plus' keyword is optional. <num> should be an + integer value [acceptable to atoi()], and <type> + is one of: +

    + +
  • years +
  • +
  • months +
  • +
  • weeks +
  • +
  • days +
  • +
  • hours +
  • +
  • minutes +
  • +
  • seconds +
  • +
    +

    + For example, any of the following directives can be used to make + documents expire 1 month after being accessed, by default: +

    +
    +
    ExpiresDefault "access plus 1 month" +
    + ExpiresDefault "access plus 4 weeks" +
    + ExpiresDefault "access plus 30 days" +
    +
    +

    + The expiry time can be fine-tuned by adding several '<num> <type>' + clauses:

    +
    +
    ExpiresByType text/html "access plus 1 month 15 days 2 hours" +
    + ExpiresByType image/gif "modification plus 5 hours 3 minutes" +
    +
    + -- 2.50.1