From 2c861a27bc15a8aa0d5125f28bc87ec3653b3753 Mon Sep 17 00:00:00 2001 From: Vincent Enjalbert Date: Wed, 23 Jan 2019 13:07:34 +0100 Subject: [PATCH] #25 deduplicate header links (#26) --- src/Middleware/AddHttp2ServerPush.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Middleware/AddHttp2ServerPush.php b/src/Middleware/AddHttp2ServerPush.php index 70c5979..253cf28 100644 --- a/src/Middleware/AddHttp2ServerPush.php +++ b/src/Middleware/AddHttp2ServerPush.php @@ -50,6 +50,7 @@ protected function generateAndAttachLinkHeaders(Response $response, $limit = nul return $this->buildLinkHeaderString($url); }) ->filter() + ->unique() ->take($limit) ->implode(',');