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"); 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, 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 //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/ * http://miromannino.github.io/Justified-Gallery/
* Copyright (c) 2020 Miro Mannino * Copyright (c) 2020 Miro Mannino
* Licensed under the MIT license. * Licensed under the MIT license.

File diff suppressed because one or more lines are too long

View file

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