We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70a6ee1 commit 063292dCopy full SHA for 063292d
1 file changed
src/DevEtagSetter.php
@@ -28,7 +28,7 @@ public function __construct(
28
*/
29
public function __invoke(ResourceObject $ro, int|null $time = null, HttpCache|null $httpCache = null)
30
{
31
- $ro->headers[Header::ETAG] = sprintf('%s_%s', str_replace([':', DIRECTORY_SEPARATOR], ['_', '_'], $ro->uri->path), http_build_query($ro->uri->query));
+ $ro->headers[Header::ETAG] = sprintf('%s_%s', str_replace('/', '_', $ro->uri->path), http_build_query($ro->uri->query));
32
$ro->headers[Header::LAST_MODIFIED] = gmdate(DateTimeInterface::RFC7231, 0);
33
$this->setCacheDependency($ro);
34
}
0 commit comments