You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I experience some strange behaviour with with the sitemap.xml content when on cache refresh. When you load the content it shows the right URL for example, when you clear the cache, it shows a random different url.
In the example below even a .ru domain is used, its not even in the site configuration.
Information:
Craft CMS 3.4.22.1
SEOmatic 3.3.8
First sitemap:
After cache refresh:
The text was updated successfully, but these errors were encountered:
Don’t ever use the @web alias when defining your sites’ Base URLs. It could introduce a cache poisoning vulnerability, and Craft won’t be able to reliably determine which site is being requested
Basically, if you use the @web alias for your siteUrl or Asset Volume URLs without explicitly defining it, Yii2 tries to dynamically determine it, but it can be set to whatever the client wants it set to.
So explicitly set the @web alias or use some other explicitly defined alias or environment variable for your site's siteUrl and Asset Volume URLs.
I experience some strange behaviour with with the sitemap.xml content when on cache refresh. When you load the content it shows the right URL for example, when you clear the cache, it shows a random different url.
In the example below even a .ru domain is used, its not even in the site configuration.
Information:
Craft CMS 3.4.22.1
SEOmatic 3.3.8
First sitemap:

After cache refresh:

The text was updated successfully, but these errors were encountered: