Skip to content

Commit 6c33e73

Browse files
authored
Fixed typo, removed cache-control from early hints
1 parent d630c8a commit 6c33e73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Middleware/AddHttp3EarlyHints.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ public function handle(Request $request, Closure $next, ?int $sizeLimit = null):
4949
return $response;
5050
}
5151

52-
if (config('http3earlyhints.set_103')) {
52+
if (config('http3earlyhints.send_103')) {
5353
$response = new Response;
54+
$response->headers->remove('cache-control');
5455
$this->addLinkHeaders($response, $linkHeaders);
5556
$response->sendHeaders(103);
5657

0 commit comments

Comments
 (0)