diff options
author | Daniel Gruno <humbedooh@apache.org> | 2012-05-04 15:04:53 +0000 |
---|---|---|
committer | Daniel Gruno <humbedooh@apache.org> | 2012-05-04 15:04:53 +0000 |
commit | 06ab60855a06758d59efd7cff1d1ea651c62422f (patch) | |
tree | 3897873f656b90ff389f97f7bd18425dadc72f32 /docs/manual/mod/mod_expires.xml | |
parent | d43c4bcbfb0e0f14fa77514afa31665aa41ac4c7 (diff) | |
download | httpd-06ab60855a06758d59efd7cff1d1ea651c62422f.tar.gz |
Backporting syntax highlighting (and a few typo fixes) for mod_e|f|h*.xml
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1334016 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_expires.xml')
-rw-r--r-- | docs/manual/mod/mod_expires.xml | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/docs/manual/mod/mod_expires.xml b/docs/manual/mod/mod_expires.xml index 00edb03a73..40d488ab52 100644 --- a/docs/manual/mod/mod_expires.xml +++ b/docs/manual/mod/mod_expires.xml @@ -62,12 +62,10 @@ criteria</description> <directive module="mod_expires">ExpiresByType</directive> directives can also be defined in a more readable syntax of the form:</p> - <example> - ExpiresDefault "<var>base</var> [plus <var>num</var> <var>type</var>] - [<var>num</var> <var>type</var>] ..."<br /> - ExpiresByType type/encoding "<var>base</var> [plus <var>num</var> <var>type</var>] - [<var>num</var> <var>type</var>] ..." - </example> + <highlight language="config"> +ExpiresDefault "<var>base</var> [plus <var>num</var> <var>type</var>] [<var>num</var> <var>type</var>] ..." +ExpiresByType type/encoding "<var>base</var> [plus <var>num</var> <var>type</var>] [<var>num</var> <var>type</var>] ..." + </highlight> <p>where <var>base</var> is one of:</p> @@ -98,21 +96,19 @@ criteria</description> make documents expire 1 month after being accessed, by default:</p> - <example> - ExpiresDefault "access plus 1 month"<br /> - ExpiresDefault "access plus 4 weeks"<br /> - ExpiresDefault "access plus 30 days" - </example> + <highlight language="config"> +ExpiresDefault "access plus 1 month" +ExpiresDefault "access plus 4 weeks" +ExpiresDefault "access plus 30 days" + </highlight> <p>The expiry time can be fine-tuned by adding several '<var>num</var> <var>type</var>' clauses:</p> - <example> - ExpiresByType text/html "access plus 1 month 15 - days 2 hours"<br /> - ExpiresByType image/gif "modification plus 5 hours 3 - minutes" - </example> + <highlight language="config"> +ExpiresByType text/html "access plus 1 month 15 days 2 hours" +ExpiresByType image/gif "modification plus 5 hours 3 minutes" + </highlight> <p>Note that if you use a modification date based setting, the Expires header will <strong>not</strong> be added to content @@ -193,13 +189,15 @@ by MIME type</description> repeatedly within a relatively short timespan).</p> <example><title>Example:</title> - # enable expirations<br /> - ExpiresActive On<br /> - # expire GIF images after a month in the client's cache<br /> - ExpiresByType image/gif A2592000<br /> - # HTML documents are good for a week from the<br /> - # time they were changed<br /> - ExpiresByType text/html M604800 + <highlight language="config"> +# enable expirations +ExpiresActive On +# expire GIF images after a month in the client's cache +ExpiresByType image/gif A2592000 +# HTML documents are good for a week from the +# time they were changed +ExpiresByType text/html M604800 + </highlight> </example> <p>Note that this directive only has effect if |