Skip to content

Commit

Permalink
modify: 画像表示のcache-controllも24時間に対応
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroto0701 committed Dec 11, 2024
1 parent 7037113 commit 5adb754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laravel/app/Http/Controllers/FileViewAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function viewFile(string $uuid, array $config): Response
return response($content, Response::HTTP_OK, [
'Content-Type' => $uploadFile->content_type,
'Content-Disposition' => 'inline',
'Cache-Control' => 'public, max-age=3600',
'Cache-Control' => 'public, max-age=86400',
'Expires' => gmdate('D, d M Y H:i:s \G\M\T', time() + 3600),
]);
});
Expand Down

0 comments on commit 5adb754

Please sign in to comment.