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
OFFthe feature is not used - if the value is
NUMBER UNITthen the header is set - the units recognized are:
second,minute,hour,day,month,year - the units can also be in plural forms
Example. SetCache-Control: max-age=86400expires: 1 dayYou 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