Skip to content

Commit 7c9dd5a

Browse files
committed
And back
1 parent 34cc705 commit 7c9dd5a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,11 @@ public function toolbarStylesheetAction(): Response
174174
$this->cspHandler?->disableCsp();
175175

176176
return new Response(
177-
$content = $this->twig->render('@WebProfiler/Profiler/toolbar.css.twig'),
177+
$this->twig->render('@WebProfiler/Profiler/toolbar.css.twig'),
178178
200,
179179
[
180180
'Content-Type' => 'text/css',
181-
'Cache-Control' => 'max-age=3600, private',
182-
'ETag' => hash('xxh128', $content),
181+
'Cache-Control' => 'max-age=600, private',
183182
],
184183
);
185184
}

src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ public function testToolbarStylesheetAction()
161161
$response = $controller->toolbarStylesheetAction();
162162
$this->assertSame(200, $response->getStatusCode());
163163
$this->assertSame('text/css', $response->headers->get('Content-Type'));
164-
$this->assertSame('max-age=3600, private', $response->headers->get('Cache-Control'));
165-
$this->assertSame('99aa06d3014798d86001c324468d497f', $response->headers->get('ETag'));
164+
$this->assertSame('max-age=600, private', $response->headers->get('Cache-Control'));
166165
}
167166

168167
public static function getEmptyTokenCases()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy