Fix Gallery

This commit is contained in:
Kekskurse 2021-01-12 19:26:00 +01:00
parent c089919425
commit 5938a08bb2
4 changed files with 7 additions and 7 deletions

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, null, ['Cache-Control'=> 'max-age='.(60*60*24)]);
return Storage::disk('cache')->response($cacheName."_".$size, null, ['Cache-Control'=> 'max-age='.(60*60*24).', public']);
}
//ORginal File exists need to be resized

View File

@ -1,5 +1,5 @@
/*!
* justifiedGallery - v3.8.0
* justifiedGallery - v3.8.1
* http://miromannino.github.io/Justified-Gallery/
* Copyright (c) 2020 Miro Mannino
* Licensed under the MIT license.

File diff suppressed because one or more lines are too long

View File

@ -18,11 +18,11 @@
@endsection
@section('js')
<link rel="stylesheet" href="/css/jquery.justified.css" />
<script src="/js/jquery.justified.min.js"></script>
<link rel="stylesheet" href="/css/justifiedGallery.css" />
<script src="/js/jquery.justifiedGallery.js"></script>
<script>
$("#mygallery").justifiedGallery({
rowHeight: 120,
rowHeight: 250,
});
</script>
@endsection