My app loads a laravel page and then I use Vue js to request some additional info on certain pages for. In my laravel methods I use
if($request->ajax()){
return response()->json([])//json array
}
return view()//my view
However on google chrome when I go to a new page, and then press back to load the last page (or Forward), I am sent the Json response from laravel
Does anyone know why this is happening and how to prevent it?
It works fine on Firefox and Epiphany