Automatically sets the Last-Modified header according the file modification date.
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/BinaryFileResponse.php, line 114
Class
- BinaryFileResponse
- BinaryFileResponse represents an HTTP response delivering a file.
Namespace
Symfony\Component\HttpFoundation
Code
public function setAutoLastModified() {
$this
->setLastModified(\DateTime::createFromFormat('U', $this->file
->getMTime()));
return $this;
}