ibrahim-elshorbagy wrote a reply+100 XP
5mos ago
ibrahim-elshorbagy wrote a reply+100 XP
5mos ago
which part exacly it is a big project i added this code public function handle(Request $request, \Closure $next) { $response = parent::handle($request, $next);
if ($request->header('X-Inertia')) {
$response->headers->set('Cache-Control', 'no-cache, no-store, must-revalidate, private');
$response->headers->set('Pragma', 'no-cache');
$response->headers->set('Expires', '0');
}
return $response;
}
and still happend on it
ibrahim-elshorbagy started a new conversation+100 XP
5mos ago
i have problem with all Inertia Projects when the user open the page from his browser history it open a JSON not a react page how can i prevent this i have
"dependencies": { "@inertiajs/react": "^2.0.12", "axios": "^1.10.0", "react": "^19.1.0", "react-dom": "^19.1.0", "swiper": "^11.2.8", "vite": "^6.3.5", "ziggy-js": "^2.5.3" },