Stuff
This commit is contained in:
parent
ee02192af9
commit
c089919425
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class PublicController extends BaseController
|
||||||
Log::info("Get from Cache");
|
Log::info("Get from Cache");
|
||||||
|
|
||||||
$this->addAccessLog($tenant->id, $gallery->id, $image->id, "Cache", Storage::disk('cache')->size($cacheName."_".$size));
|
$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
|
//ORginal File exists need to be resized
|
||||||
|
|
Loading…
Reference in a new issue