Skip to content

Commit 0d58311

Browse files
committed
Use Header::RFC7231 in MobileEtagSetter for consistency
1 parent 4a310b2 commit 0d58311

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MobileEtagSetter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __invoke(ResourceObject $ro, int|null $time = null, HttpCache|nu
2424
$ro->headers[Header::ETAG] = (string) crc32($this->getDevice() . serialize($ro->view) . serialize($ro->body));
2525
// time
2626
$time ??= time();
27-
$ro->headers[Header::LAST_MODIFIED] = gmdate('D, d M Y H:i:s', $time) . ' GMT';
27+
$ro->headers[Header::LAST_MODIFIED] = gmdate(Header::RFC7231, $time);
2828
}
2929

3030
/**

0 commit comments

Comments
 (0)