Topic-icon can't login to my site without a hard refresh

Active Subscriptions:

None
3 years 11 months ago #66356 by fratan
Hello,
Since upgrading to JFBC 8.4.2, login to my website is behaving very strange.
Now when I login using Facebook, I have a confirmation message that the login is successful but this is not reflected on the site until I press 'ctlr F5'.
Also because I've turned on auto login with Facebook, the confirmation below appears to indicate successful logins but again nothing happens. On Firefox the site keeps refreshing itself with the same message again and again until I press 'ctlr F5'.
I've cleared my caches and cookies on Joomla and on my browsers but still having the same issue.
Users on my site have also reported the issue.

I'm using Joomla! 3.9.18.

Any idea what the problem can be please?

Thanks

File Attachment:
The topic has been locked.
Support Specialist
3 years 11 months ago #66364 by alzander
Please disable all caching that you have enabled on your site. The issue you describe happens when aggressive types of caching are enabled, specifically 'page caching' or 'browser caching' where the HTML for a page is stored in a user's browser. That can significantly improve speed on a page but it's not recommended on any websites that implement authentication.

The problem browser caching causes is that although the user is authenticated, the HTML in the user's browser is from when they were un-authenticated. That HTML will attempt to authenticate the user again, but then the HTML cached in the browser will reload as if they are un-authenticated and it will loop continuously from there. Hitting CTRL-F5 tells the browser to not use it's HTML cache which is why that fixes the issue.

I hope that helps explain and fix your issue!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
3 years 11 months ago #66369 by fratan
That was useful, I disabled the only cache I had on the site, Joomla system cache and the issue is now fixed.

Thanks for the help.
The topic has been locked.