Skip to content

Commit 2daaad0

Browse files
Toflarleofeyer
authored andcommitted
Configure a max header value instead of removing the header (see #101)
Description ----------- This needs to hold on for the releases. Related PR's: Library: * FriendsOfSymfony/FOSHttpCache#424 * FriendsOfSymfony/FOSHttpCache#426 Bundle: * FriendsOfSymfony/FOSHttpCache#426 Commits ------- f782ecc9 Configured max header value instead of removing the header altogether 1461dd09 Use 4096 instead of 2048
1 parent 633c6df commit 2daaad0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Resources/skeleton/app/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,4 @@ fos_http_cache:
9898
enabled: true
9999
tags:
100100
enabled: true
101+
max_header_value_length: 4096

src/Resources/skeleton/web/app_dev.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,5 @@
7878
$kernel = new ContaoKernel('dev', true);
7979
$response = $kernel->handle($request);
8080

81-
// Remove the X-Cache-Tags header before sending the response
82-
$response->headers->remove(TagHeaderFormatter::DEFAULT_HEADER_NAME);
83-
8481
$response->send();
8582
$kernel->terminate($request, $response);

0 commit comments

Comments
 (0)