We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a310b2 commit 0d58311Copy full SHA for 0d58311
1 file changed
src/MobileEtagSetter.php
@@ -24,7 +24,7 @@ public function __invoke(ResourceObject $ro, int|null $time = null, HttpCache|nu
24
$ro->headers[Header::ETAG] = (string) crc32($this->getDevice() . serialize($ro->view) . serialize($ro->body));
25
// time
26
$time ??= time();
27
- $ro->headers[Header::LAST_MODIFIED] = gmdate('D, d M Y H:i:s', $time) . ' GMT';
+ $ro->headers[Header::LAST_MODIFIED] = gmdate(Header::RFC7231, $time);
28
}
29
30
/**
0 commit comments