2.3.47 ExpiresActive
ExpiresActive specifies whether to add Expires and Cache-Control headers to responses.
Description
ExpiresActive specifies whether to add Expires and Cache-Control headers to responses.
- Important note
-
-
You need to embed the mod_expires module to use this directive.
LoadModule expires_module modules/mod_expires.so
-
When the ExpiresDefault directive or the ExpiresByType directive is not specified, even if On is specified in the ExpiresActive, Expires and Cache-Control headers are not added.
-
Syntax
ExpiresActive {On|Off}
Specifiable values
- On
-
Expires and Cache-Control headers are added.
- Off
-
Expires and Cache-Control headers are not added.
Locations where it can be written
httpsd.conf, <VirtualHost>, <Directory>, and .htaccess
Overwrite permission
Indexes level