vendredi 20 septembre 2019

Laravel 5.8 routes sometimes called multiple times

I'm not sure why, but Laravel routes are sometimes requested multiple times in a row. It only happens on the web.php route (not api.php). I've tried to disable all web global middlewares and I get the same result.

Heres what I'm using in web.php

use Illuminate\Http\Request;

Route::get('/', function () {
    return "ok";
});

Telescope will sometimes show multiple requests were made to fetch "/", sometimes not. I can't figure out when it happens as it's seemingly random. It happens both with Safari 12 and Chrome 77. This happens on all my defined routes, not just this basic test one.

This is happening both on my local environment and my production environment. Has anyone run into something similar?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire