Name
ExpiresByType
Synopsis
ExpiresByTypemime-type
<A|M>seconds
[server config, or within
<VirtualHost>
or
<Directory>
, or
.htaccess]
Specifies the mime-type of a document and the number of seconds the document should expire in. For example:
ExpiresByType text/html A300000 ExpiresByType image/jpg M300000
The seconds field should be preceded by either
the letter A
or M
. An
A
indicates that the resource should expire the
specified number of seconds after the client’s
access. An M
indicates that the resource should
expire the specified number of seconds after the last modification
date of the document as it resides on the server. The default is
specified by the ExpiresDefault
directive below;
this directive overrides the default.
Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.