I'm currently running a mix of different services under different subdomains:
a.example.com: Docker container behind nginx proxy
b.example.com: nginx site
c.example.com: Docker container behind nginx proxy
a and c share the same ipv4, b has it's own ipv4, while a, b and c all use different ipv6 addresses. All of them are SSL secured, non ssl traffic redirected by nginx (via 301) to the ssl secured site.
All of them are secured via HSTS (optional "includeSubdomains" is not set).
Now, to my problem
- Open https://a.example.com via firefox -> works
- Open https://b.example.com via firefox -> works
- Open https://a.example.com via firefox -> doesn't work, it show b.example.com instead. Seems that firefox somehow caches b.example.com. If I press shift+reload, firefox loads the correct a.example.com site.
This is a firefox specific problem. The above works flawlessly with Chrome, Vivaldi, MS Edge (Chromium based). It even works fine with wget. I have no clue what causes firefox to grab the wrong site out of it's storage.
Any help is kindly appreciated.