diff --git a/app/Http/Controllers/ImageController.php b/app/Http/Controllers/ImageController.php index 81c0bbe082..66d04a1bf2 100755 --- a/app/Http/Controllers/ImageController.php +++ b/app/Http/Controllers/ImageController.php @@ -20,6 +20,9 @@ public function __invoke(Image $image): StreamedResponse return response()->stream(function () use ($image): void { echo $image->Data; - }, 200, ['Content-type' => $image->Extension]); + }, 200, [ + 'Content-type' => $image->Extension, + 'Cache-Control' => 'private, max-age=31536000, immutable', + ]); } }