Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


2.3.50 ExpiresDefault

ExpiresDefault specifies the default validity period when the Expires and Cache-Control headers are added to a response.

Description

ExpiresDefault specifies the default validity period when the Expires and Cache-Control headers are added to a response. This directive is enabled when On is specified in the ExpiresActive directive. This setting is overwritten by the ExpiresByType directive for each MIME type.

Set the reference time by specifying A or M, and then specify the validity period (the amount of time from the reference time until the time of expiration) in seconds. Do not insert a space character between the reference time (A or M) and the validity period.

A

Sets the time when the client was accessed as the reference time.

M

Sets the time when the file was last updated as the reference time.

Important note
  • To use this directive, you need to embed the mod_expires module.

    LoadModule expires_module modules/mod_expires.so

  • Set a validity period that does not exceed 3:14:07 a.m. GMT (Greenwich Mean Time) on January 19, 2038.

Syntax

ExpiresDefault {A|M}amount_of_time

Specifiable values

0 to 2147483647

Locations where it can be written

httpsd.conf, <VirtualHost>, <Directory>, and .htaccess

Overwrite permission

Indexes level

Example

ExpiresDefault A604800