This commit is contained in:
Kekskurse 2021-01-12 19:15:22 +01:00
parent ee02192af9
commit c089919425

View file

@ -51,7 +51,7 @@ class PublicController extends BaseController
Log::info("Get from Cache");
$this->addAccessLog($tenant->id, $gallery->id, $image->id, "Cache", Storage::disk('cache')->size($cacheName."_".$size));
return Storage::disk('cache')->response($cacheName."_".$size);
return Storage::disk('cache')->response($cacheName."_".$size, null, ['Cache-Control'=> 'max-age='.(60*60*24)]);
}
//ORginal File exists need to be resized