Hitachi

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


2.3.49 ExpiresByType

ExpiresByType specifies expiration dates for MIME-type documents when Expires and Cache-Control headers are added to a response.

Description

ExpiresByType specifies an expiration date for the MIME-type document to be specified when Expires and Cache-Control headers are added to a response. This directive is enabled when On is specified in the ExpiresActive directive. The default expiration date that is specified in the ExpiresDefault directive is overwritten for each MIME type by the expiration date specified by ExpiresByType.

Specify a reference time by using A or M, and specify the length of time from the reference time to the expiration date in seconds. Do not insert blanks between A or M and the length of time.

A

The time when a client is accessed is set as the reference time.

M

The time when a file was last updated is set as the reference time.

Important note
  • You need to embed the mod_expires module to use this directive.

    LoadModule expires_module modules/mod_expires.so

  • Set an expiration date such that it is not after 3:14:7 a.m. on January 19, 2038 Greenwich Mean Time (GMT).

Syntax

ExpiresByType MINE_type {A|M}length_of_time

Specifiable values

0 to 2,147,483,647

Locations where it can be written

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

Overwrite permission

Indexes level

Example

ExpiresByType text/html A604800