From 34fb77e7dcd9e71d54c70182450fbd94b7693563 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 14 Jun 2023 10:10:11 +1000 Subject: [PATCH] Add auth to document downloads --- app/Http/Controllers/ClientPortal/DocumentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ClientPortal/DocumentController.php b/app/Http/Controllers/ClientPortal/DocumentController.php index b1a816d4bf77..b5bc39f9aa08 100644 --- a/app/Http/Controllers/ClientPortal/DocumentController.php +++ b/app/Http/Controllers/ClientPortal/DocumentController.php @@ -58,7 +58,7 @@ class DocumentController extends Controller $document = Document::where('hash', $document_hash)->firstOrFail(); - $headers = []; + $headers = ['Cache-Control:' => 'no-cache']; if (request()->input('inline') == 'true') { $headers = array_merge($headers, ['Content-Disposition' => 'inline']);