I think we need more information. You visit your website locally and then it just reloads the whole page every 2 seconds? And it started doing this without you changing anything?
How to stop auto refresh?
Hi, My website automatic refresh with second. How to stop auto refresh? Anyone pls help me.
Hi sir, Yesterday my code is working perfect. But today morning run the project automatic reload within 10 or 15 sec. again again reload my website. how to stop.
@Kesavan_Kani is this in dev or production? What server are you running? Are you using npm run dev?
@Sinnbeck i am using dev mode in localhost.I am using Xampp server.i am not using npm run dev. Laravel version is 5.2
@Kesavan_Kani Wow that is an old version. Dont really recall anything like that happening in that verison though.. Maybe try a simple reboot?
@Sinnbeck Dear sir, My session keeps getting refreshed automatically every 2 seconds. so i am unable to login pls guide me
@Kesavan_Kani I have no idea why that is happening. If I did I would just tell you. Maybe your webserver is failing (I suggested a reboot). You can also try php artisan serve for the webserver. Or maybe your browser is the problem. Try another browser.
javascript running on your page?
@Snapey Yes sir
@Snapey Login page and register page in one single page.
@Kesavan_Kani Add a test route without javascript and see if it happens there
Route::get('test', function() {
return 'test';
});
@Sinnbeck I have added test route. Rightnow no auto refresh in my webpage.
@Kesavan_Kani Ok so it only happens on the regular page? If you remove the javascript, does it refresh?
@Sinnbeck Not working sir
@Kesavan_Kani What if you just return a completely empty blade file?
@Sinnbeck No sir, same auto refresh in my website
I had the same issue and found that the config from Junie is being watched by Vite and it make the page keep refreshing. I updated the watch config in vite.config.js:
server: { watch: { ignored: ['/storage/framework/views/', '/.junie/'], }, },
Please or to participate in this conversation.