- Issue created by @walterp
Let us know how to reproduce this bug. Can you determine the precise conditions under which it occurs?
- 🇩🇪Germany walterp
Unfortunately there are no precise and reproducible conditions. The procedure is:
- rollout code, mysql and files from staging website to production website
- flush cache on production website
- flush cache on Cloudflare
And then randomly links - especially in blocks in the footer - show this behavior.
Sometimes, there are also pages shown in the wrong language (e.g. language path points to .../pl/... and chars on the page are in chinese font/language).
It's hard to find pages with mistakes.If we flush only the Cloudflare cache of the page with the wrong links or the false font, the links are OK and/or the font/language is OK.
- 🇩🇪Germany walterp
Just a theory of mine for discussion:
In drupal settings Language -> Detection and selection -> Content language detection we have the following settings in this series:
- URL
- User
- Browser
- Content language
In english, we have no language prefix, while all other languages have a prefix (.../de/..., .../cn/..., and so on).
Is it possible, that a visitor comes to our website to an english page - without prefix - and and have in his browser settings chinese as language, that then chinese language is shown and cached?
Should we set only 'URL' detection?
What are the HTTP cache headers emitted by the site to Cloudflare on affected pages? That should answer your question.