#91443Environment Variable in SiteConfiguration gets cached
Description
I have set up an environment variable in the htaccess file ..…
SetEnvIf Host "^domain1\.com$" ERROR_CONTENT_SOURCE=t3://page?uid=1489
SetEnvIf Host "^domain2\.com$" ERROR_CONTENT_SOURCE=https://domain3.com/404/
… and use it in the yaml file of the site configuration:
errorContentSource: '%env(ERROR_CONTENT_SOURCE)%'
If I now open domain1.com/xyz, the desired error page appears. If I then open domain2.com/xyz, the error page set up for domain1 appears – but if I clear the cache first, the correct error page appears. The other way round it is exactly the same: the variant that is called first is set in the cache.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.