Apache Version 1.2 brought the expires module, mod_expires, into the main distribution. The point of this module is to allow the webmaster to set the returned headers to pass information to clients' browsers about documents that will need to be reloaded because they are apt to change, or alternatively, that are not going to change for a long time and can therefore be cached. There are three directives.
ExpiresActive [on|off] Anywhere, .htaccess when AllowOverride Indexes
ExpiresByType mime-type time Anywhere, .htaccess when AllowOverride Indexes
There is no space between code and seconds. code is one of the following:
seconds is simply a number. For example:
specifies 565656 seconds after the access time.
The more readable second format is:
base [plus] number type [number type ...]
where base is one of the following:
The plus keyword is optional, and type is one of the following:
now plus 1 day 4 hours
does what it says.
ExpiresDefault time Anywhere, .htaccess when AllowOverride Indexes
Copyright © 2001 O'Reilly & Associates. All rights reserved.