The issue occurs because the browser serves the previous page from its cache without making a new network request, leading to outdated content.
To fix this, proper cache-control headers (no-store, no-cache, must-revalidate) should be set on language switch pages to force a reload.
Try below approaches:
1. Add this to your Apache/Dispatcher configuration (vhost.conf or dispatcher.conf)
<LocationMatch "^/content/your-site/.*$">
Header always set Cache-Control "no-store, no-cache, must-revalidate, private"
Header always set Pragma "no-cache"
Header always set Expires "0"
</LocationMatch>
2. Ensure Apache mod_headers is enabled On the server:
a2enmod headers
service apache2 restart
<LocationMatch "^/content/your-site/([a-z]{2})/.*$">
Header always set Cache-Control "no-store, no-cache, must-revalidate, private"
</LocationMatch>