diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index bd89013..c9bdd4b 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -17,6 +17,25 @@ class HandleInertiaRequests extends Middleware */ protected $rootView = 'app'; + /** + * Handle the incoming request. + * + * This override prevents cache issues when users navigate back from external + * sites (like Stripe checkout) using the browser's back button. + */ + public function handle(\Illuminate\Http\Request $request, \Closure $next): \Symfony\Component\HttpFoundation\Response + { + $response = parent::handle($request, $next); + + // Add headers to prevent browser caching of Inertia responses + // This fixes the issue where back-button navigation from Stripe shows raw JSON + $response->headers->set('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0'); + $response->headers->set('Pragma', 'no-cache'); + $response->headers->set('Expires', 'Sat, 01 Jan 2000 00:00:00 GMT'); + + return $response; + } + /** * Determines the current asset version. * diff --git a/public/build.zip b/public/build.zip index a361a03..7600d0d 100644 Binary files a/public/build.zip and b/public/build.zip differ diff --git a/resources/js/components/landing/CallBookingSection.vue b/resources/js/components/landing/CallBookingSection.vue index 9a1429b..2e886dc 100644 --- a/resources/js/components/landing/CallBookingSection.vue +++ b/resources/js/components/landing/CallBookingSection.vue @@ -30,7 +30,7 @@
-
-

Secure payment

diff --git a/resources/js/components/landing/HeroSection.vue b/resources/js/components/landing/HeroSection.vue index 188af78..40bc58e 100644 --- a/resources/js/components/landing/HeroSection.vue +++ b/resources/js/components/landing/HeroSection.vue @@ -81,7 +81,7 @@ class="absolute inset-0 translate-x-[-100%] -skew-x-12 transform bg-gradient-to-r from-transparent via-white/20 to-transparent transition-transform duration-1000 group-hover:translate-x-[100%]" > - Reveal my free reading + Reveal your inner power diff --git a/resources/js/components/landing/OfferSection.vue b/resources/js/components/landing/OfferSection.vue index 40b1b2e..c5b332f 100644 --- a/resources/js/components/landing/OfferSection.vue +++ b/resources/js/components/landing/OfferSection.vue @@ -92,6 +92,7 @@