diff --git a/core/modules/image/src/Controller/ImageStyleDownloadController.php b/core/modules/image/src/Controller/ImageStyleDownloadController.php index 838c18c..4ad6dc6 100644 --- a/core/modules/image/src/Controller/ImageStyleDownloadController.php +++ b/core/modules/image/src/Controller/ImageStyleDownloadController.php @@ -122,7 +122,7 @@ public function deliver(Request $request, $scheme, ImageStyleInterface $image_st if ($response instanceof BinaryFileResponse) { $response->headers->add([ - 'Cache-Control' => 'private, must-revalidate', + 'Cache-Control' => 'private', 'Expires' => \DateTime::createFromFormat('j-M-Y H:i:s T', '19-Nov-1978 05:00:00 GMT')->format('D, d M Y H:i:s T'), ]); } @@ -180,6 +180,8 @@ public function deliver(Request $request, $scheme, ImageStyleInterface $image_st $headers += array( 'Content-Type' => $image->getMimeType(), 'Content-Length' => $image->getFileSize(), + 'Cache-Control' => 'private', + 'Expires' => \DateTime::createFromFormat('j-M-Y H:i:s T', '19-Nov-1978 05:00:00 GMT')->format('D, d M Y H:i:s T'), ); return new BinaryFileResponse($uri, 200, $headers); }