From d1eee829384fd2c32c2d5bfbd8ff01ae9569cee6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 26 Apr 2023 15:44:54 +1000 Subject: [PATCH] Minor fixes for browser caching --- app/Http/Controllers/ClientPortal/InvitationController.php | 4 ++-- .../views/portal/ninja2020/components/no-cache.blade.php | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/ClientPortal/InvitationController.php b/app/Http/Controllers/ClientPortal/InvitationController.php index eece9465c5..25fea802d1 100644 --- a/app/Http/Controllers/ClientPortal/InvitationController.php +++ b/app/Http/Controllers/ClientPortal/InvitationController.php @@ -136,10 +136,10 @@ class InvitationController extends Controller } else { $is_silent = 'true'; - return redirect()->route('client.'.$entity.'.show', [$entity => $this->encodePrimaryKey($invitation->{$key}), 'silent' => $is_silent]); + return redirect()->route('client.'.$entity.'.show', [$entity => $this->encodePrimaryKey($invitation->{$key}), 'silent' => $is_silent])->header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); } - return redirect()->route('client.'.$entity.'.show', [$entity => $this->encodePrimaryKey($invitation->{$key})]); + return redirect()->route('client.'.$entity.'.show', [$entity => $this->encodePrimaryKey($invitation->{$key})])->header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); } private function fireEntityViewedEvent($invitation, $entity_string) diff --git a/resources/views/portal/ninja2020/components/no-cache.blade.php b/resources/views/portal/ninja2020/components/no-cache.blade.php index 4a7bc88647..3ef938bef2 100644 --- a/resources/views/portal/ninja2020/components/no-cache.blade.php +++ b/resources/views/portal/ninja2020/components/no-cache.blade.php @@ -1,5 +1,3 @@ - - + -