I have a controller that serves images from my Laravel storage folder:
public function showPhoto($filename)
{
return Image::make(storage_path('app/images/' . $filename))->response();
}
My question: How can I enable browser cache for this images?
I have seen the package intervention/imagecache
, but I doesn't mean server cache.
I have changed things like response status 304, but that doesn't work. How can I have browser cache for this images?