Kesavan_Kani's avatar

How to stop auto refresh?

Hi, My website automatic refresh with second. How to stop auto refresh? Anyone pls help me.

0 likes
17 replies
Sinnbeck's avatar

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?

Kesavan_Kani's avatar

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's avatar

@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

Sinnbeck's avatar

@Kesavan_Kani Wow that is an old version. Dont really recall anything like that happening in that verison though.. Maybe try a simple reboot?

Kesavan_Kani's avatar

@Sinnbeck Dear sir, My session keeps getting refreshed automatically every 2 seconds. so i am unable to login pls guide me

Sinnbeck's avatar

@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.

Snapey's avatar

javascript running on your page?

Sinnbeck's avatar

@Kesavan_Kani Add a test route without javascript and see if it happens there

Route::get('test', function() {
   return 'test';
});
aliyyanWijaya's avatar

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.