Configure > Expires Directives
This document describes the configuration directives of the expires handler.
- Description:
-
An optional directive for setting the
Cache-Control: max-age=
header.- if the argument is
OFF
the feature is not used - if the value is
NUMBER UNIT
then the header is set - the units recognized are:
second
,minute
,hour
,day
,month
,year
- the units can also be in plural forms
expires: 1 day
You can also find an example that conditionally sets the header depending on the aspects of a request in Modifying the Response section of the Mruby directives documentation.
- if the argument is
- Level:
- global, host, path, extension