Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 90769 invoked from network); 11 Aug 2004 17:02:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Aug 2004 17:02:38 -0000 Received: (qmail 24068 invoked by uid 500); 11 Aug 2004 17:02:38 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 23958 invoked by uid 500); 11 Aug 2004 17:02:37 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 23945 invoked by uid 500); 11 Aug 2004 17:02:37 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Received: (qmail 23940 invoked by uid 99); 11 Aug 2004 17:02:37 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 11 Aug 2004 10:02:36 -0700 Received: (qmail 90732 invoked by uid 1173); 11 Aug 2004 17:02:35 -0000 Date: 11 Aug 2004 17:02:35 -0000 Message-ID: <20040811170235.90731.qmail@minotaur.apache.org> From: slive@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/docs/manual/mod mod_expires.html.en mod_expires.xml X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N slive 2004/08/11 10:02:35 Modified: docs/manual/mod Tag: APACHE_2_0_BRANCH mod_expires.html.en mod_expires.xml Log: Backport: Note that mod_expires also sends Cache-Control: max-age. Revision Changes Path No revision No revision 1.12.2.5 +45 -32 httpd-2.0/docs/manual/mod/mod_expires.html.en Index: mod_expires.html.en =================================================================== RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_expires.html.en,v retrieving revision 1.12.2.4 retrieving revision 1.12.2.5 diff -u -d -u -r1.12.2.4 -r1.12.2.5 --- mod_expires.html.en 7 May 2004 08:21:03 -0000 1.12.2.4 +++ mod_expires.html.en 11 Aug 2004 17:02:35 -0000 1.12.2.5 @@ -24,24 +24,32 @@

Available Languages:  en  |  ko 

- +
Description:Generation of Expires HTTP headers according to -user-specified criteria
Description:Generation of Expires and +Cache-Control HTTP headers according to user-specified +criteria
Status:Extension
Module�Identifier:expires_module
Source�File:mod_expires.c

Summary

This module controls the setting of the Expires - HTTP header in server responses. The expiration date can set to - be relative to either the time the source file was last - modified, or to the time of the client access.

+ HTTP header and the max-age directive of the + Cache-Control HTTP header in server responses. The + expiration date can set to be relative to either the time the + source file was last modified, or to the time of the client + access.

+ +

These HTTP headers are an instruction to the client about the + document's validity and persistence. If cached, the document may + be fetched from the cache rather than from the source until this + time has passed. After that, the cache copy is considered + "expired" and invalid, and a new copy must be obtained from the + source.

+ +

To modify Cache-Control directives other than + max-age (see RFC + 2616 section 14.9), you can use the Header directive.

-

The Expires HTTP header is an instruction to - the client about the document's validity and persistence. If - cached, the document may be fetched from the cache rather than - from the source until this time has passed. After that, the - cache copy is considered "expired" and invalid, and a new copy - must be obtained from the source.

Directives

    @@ -129,23 +137,25 @@ Module:mod_expires

    This directive enables or disables the generation of the - Expires header for the document realm in question. - (That is, if found in an .htaccess file, for - instance, it applies only to documents generated from that - directory.) If set to Off, no Expires header - will be generated for any document in the realm (unless overridden at - a lower level, such as an .htaccess file overriding a - server config file). If set to On, the header will be - added to served documents according to the criteria defined by the - ExpiresByType and - ExpiresDefault directives - (q.v.).

    + Expires and Cache-Control headers for + the document realm in question. (That is, if found in an + .htaccess file, for instance, it applies only to + documents generated from that directory.) If set to + Off, the headers will not be generated for any + document in the realm (unless overridden at a lower level, such as + an .htaccess file overriding a server config + file). If set to On, the headers will be added to + served documents according to the criteria defined by the + ExpiresByType and + ExpiresDefault + directives (q.v.).

    Note that this directive does not guarantee that an - Expires header will be generated. If the criteria - aren't met, no header will be sent, and the effect will be as - though this directive wasn't even specified.

    - + Expires or Cache-Control header will be + generated. If the criteria aren't met, no header will be sent, and + the effect will be as though this directive wasn't even + specified.

    +
top

ExpiresByType Directive

@@ -160,10 +170,13 @@ Module:mod_expires

This directive defines the value of the Expires - header generated for documents of the specified type (e.g., - text/html). The second argument sets the number of - seconds that will be added to a base time to construct the expiration - date.

+ header and the max-age directive of the + Cache-Control header generated for documents of the + specified type (e.g., text/html). The second + argument sets the number of seconds that will be added to a base + time to construct the expiration date. The Cache-Control: + max-age is calculated by subtracting the request time from + the expiration date and expressing the result in seconds.

The base time is either the last modification time of the file, or the time of the client's access to the document. Which @@ -229,4 +242,4 @@

- \ No newline at end of file + 1.3.2.5 +47 -32 httpd-2.0/docs/manual/mod/mod_expires.xml Index: mod_expires.xml =================================================================== RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_expires.xml,v retrieving revision 1.3.2.4 retrieving revision 1.3.2.5 diff -u -d -u -r1.3.2.4 -r1.3.2.5 --- mod_expires.xml 17 Apr 2004 18:43:37 -0000 1.3.2.4 +++ mod_expires.xml 11 Aug 2004 17:02:35 -0000 1.3.2.5 @@ -22,24 +22,34 @@ mod_expires -Generation of Expires HTTP headers according to -user-specified criteria +Generation of Expires and +Cache-Control HTTP headers according to user-specified +criteria Extension mod_expires.c expires_module

This module controls the setting of the Expires - HTTP header in server responses. The expiration date can set to - be relative to either the time the source file was last - modified, or to the time of the client access.

+ HTTP header and the max-age directive of the + Cache-Control HTTP header in server responses. The + expiration date can set to be relative to either the time the + source file was last modified, or to the time of the client + access.

+ +

These HTTP headers are an instruction to the client about the + document's validity and persistence. If cached, the document may + be fetched from the cache rather than from the source until this + time has passed. After that, the cache copy is considered + "expired" and invalid, and a new copy must be obtained from the + source.

+ +

To modify Cache-Control directives other than + max-age (see RFC + 2616 section 14.9), you can use the Header directive.

-

The Expires HTTP header is an instruction to - the client about the document's validity and persistence. If - cached, the document may be fetched from the cache rather than - from the source until this time has passed. After that, the - cache copy is considered "expired" and invalid, and a new copy - must be obtained from the source.

Alternate Interval Syntax @@ -117,23 +127,25 @@

This directive enables or disables the generation of the - Expires header for the document realm in question. - (That is, if found in an .htaccess file, for - instance, it applies only to documents generated from that - directory.) If set to Off, no Expires header - will be generated for any document in the realm (unless overridden at - a lower level, such as an .htaccess file overriding a - server config file). If set to On, the header will be - added to served documents according to the criteria defined by the - ExpiresByType and - ExpiresDefault directives - (q.v.).

+ Expires and Cache-Control headers for + the document realm in question. (That is, if found in an + .htaccess file, for instance, it applies only to + documents generated from that directory.) If set to + Off, the headers will not be generated for any + document in the realm (unless overridden at a lower level, such as + an .htaccess file overriding a server config + file). If set to On, the headers will be added to + served documents according to the criteria defined by the + ExpiresByType and + ExpiresDefault + directives (q.v.).

Note that this directive does not guarantee that an - Expires header will be generated. If the criteria - aren't met, no header will be sent, and the effect will be as - though this directive wasn't even specified.

-
+ Expires or Cache-Control header will be + generated. If the criteria aren't met, no header will be sent, and + the effect will be as though this directive wasn't even + specified.

+ @@ -148,10 +160,13 @@

This directive defines the value of the Expires - header generated for documents of the specified type (e.g., - text/html). The second argument sets the number of - seconds that will be added to a base time to construct the expiration - date.

+ header and the max-age directive of the + Cache-Control header generated for documents of the + specified type (e.g., text/html). The second + argument sets the number of seconds that will be added to a base + time to construct the expiration date. The Cache-Control: + max-age is calculated by subtracting the request time from + the expiration date and expressing the result in seconds.

The base time is either the last modification time of the file, or the time of the client's access to the document. Which