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 @@
-
-
+
-