Environment: Sc 10, SXA 10x, Azure PaaS
Sitecore adds query string param rev=-1
to the media url whenever there is no language version available for asset other than default Language.
ex: /-/media/project/site/home/hero-banner.jpg?rev=-1
This happens with Multilanguage environment, We have media library setup with assets based on Unrevisioned Image Template
!!
Although our default site language is en-us
we prefer to manage all assets in the fallback language en
(this helps to have single asset across langs)
This works as expected with asset rendering as the media blob is shared field which means the actual asset is shared across languages, however due to rev
being added as -1
have been causing issues with caching whenever the asset is modified (detaching and attaching a new asset causes the rev
not to be updated and url is not unique anymore).
Could someone help let me know if this is expected behavior to have media assets in all language versions for all the available site languages ? (despite the Media
field is Shared)