cancel
Showing results for 
Search instead for 
Did you mean: 

Auto refresh on home page

Auto refresh on home page

hi.. hope you're well.. 

 

I have an issue with my website. On the homepage, there is continuous auto-refresh happening. I have already restarted Varnish, cleared the cache, and tried everything I could, but the issue persists.

 

This happens across all devices and different networks facing the same problem when accessing the homepage. However, when I change the language/storeview before the page auto-refreshes, the auto-refresh issue stops both in the newly selected language and the previously used one, and the issue does not appear on other devices.

But after a few hours, the issue happens again and is resolved when I switch the language again. I find this quite strange, as no changes have been made to my website. Could someone provide a clue on where I should fixing this? Thank you.

4 REPLIES 4

Re: Auto refresh on home page

t seems like the auto-refresh problem might be related to a configuration issue or a caching conflict, potentially involving session data or storeview settings.

Here are a few things you might want to check:

  1. Browser Caching: Despite clearing Varnish cache, the issue could still be related to browser cache or cookies, especially if the issue persists across multiple devices. Try testing in incognito mode to eliminate any stored session data.
  2. Session Management: If the language/storeview switching resolves the issue temporarily, it could be related to session variables or cache being incorrectly handled for that specific storeview. Investigating session storage or session expiration policies could provide insights.
  3. Magento or Storefront Customizations: If there have been any recent updates or custom scripts added to the homepage, check if there are any JavaScript or asynchronous loading scripts causing the refresh. Sometimes, these scripts might trigger an auto-refresh unexpectedly.
  4. CDN Configuration: If you are using a CDN, ensure that the settings for cache TTL (Time to Live) are correctly configured. Sometimes CDNs may cause unexpected caching issues or force refreshes.
  5. Theme or Plugin Conflict: It might be worthwhile to disable custom themes or recently added extensions/plugins temporarily to rule out any conflicts.

If you haven’t done so already, I would also recommend enabling detailed logging to track when the auto-refresh happens and whether it correlates with any particular action, such as a failed request or error in the console.

As a side note, if you’re looking for educational support, feel free to check out the Digital Gujarat Scholarship, an excellent initiative helping students access financial aid for their studies.

I hope this helps! If the issue persists after troubleshooting, it might be useful to get in touch with a Magento expert or a web developer to conduct a more thorough investigation.

Re: Auto refresh on home page

Hello, 

 

First, check the browser console for any errors that might point to a script causing the auto-refresh. Then, review your Varnish and Magento cache settings, especially around language or store view switching, as this seems to fix the problem temporarily. Look for any custom JavaScript, third-party extensions, or redirect rules in .htaccess that might create a loop. Since the issue returns after a few hours, it could also be tied to session cookies or how your frontend cache handles store views. Try disabling extensions individually and clearing Magento sessions to isolate the problem. Check system.log and exception.log for any patterns when the refresh occurs.

 

Hope this helps

Jeffrey

Re: Auto refresh on home page

It seems the auto-refresh issue on your homepage might be related to caching or session management, particularly since switching the language/storeview temporarily resolves the problem.

 

To troubleshoot, you can try the following steps:

First, clear your browser cache and cookies, then test the site in incognito mode.

Next, review your Varnish and Magento cache settings, paying special attention to configurations related to language or store view switching.

Check for any recently added custom scripts or third-party extensions that might be causing conflicts.

If the issue persists, consider disabling extensions one by one to isolate the problem.

At the end, examine your server logs for any recurring errors that coincide with the refresh occurrences.

If these steps don't resolve the issue, it may be best to consult with a Magento expert for a more in-depth investigation.

Re: Auto refresh on home page

Thank you so much for the info, It helped me.