Thank you for your reply.
As I understand, authentication.php should not affect site caching.
I tried another browser and I experience no caching issues, so it had to be a Google Chrome thing.
Strange enough, after a few hours the problem also disappeared in Google Chrome.
I tried to reproduce the error but now everything works like it should.
Sorry, and thank you for your time.