vod_last_modified

The `vod_last_modified` directive determines whether the `Last-Modified` header is included in responses for video on demand clients.

Syntaxvod_last_modified on;
Defaultoff
Contexthttp, server, location
Arguments1

Description

The vod_last_modified directive is a configuration option used in the NGINX-based Video on Demand (VOD) Packager module. When enabled, this directive allows NGINX to include the Last-Modified HTTP header in responses. This is particularly relevant for clients that cache resources, as it provides them with an indication of the last modification date and time of the requested resource. The inclusion of this header can help clients make informed decisions on caching and resource freshness.

This directive can be set to either on or off. When set to on, the server will process the request as it normally would, generating a Last-Modified header based on the file's last modified timestamp. If set to off, NGINX will not send the Last-Modified header, which may result in less efficient caching behavior on the client side. Choosing whether to include this header depends on how the VOD resources are managed and how clients interact with the served content.

Config Example

location /vod {
    vod_last_modified on;
    # other configuration options... 
}

Ensure timestamps are correctly set on video files, as the Last-Modified header derives from these timestamps.

Consider the implications of caching on client behavior when toggling this directive; it may affect the freshness of content served.

← Back to all directives