fix(images): force rewrite CMS poster URL to -v2 to guarantee cache bust
This commit is contained in:
@@ -37,7 +37,10 @@ export function HeroVideo(props: HeroVideoProps) {
|
||||
defaultPoster = videoUrl.replace('.mp4', '-poster-v2.webp');
|
||||
}
|
||||
|
||||
const posterSrc = props.backgroundImage?.url || props.posterImage?.url || data?.posterImage?.url || defaultPoster;
|
||||
let posterSrc = props.backgroundImage?.url || props.posterImage?.url || data?.posterImage?.url || defaultPoster;
|
||||
// Force -v2 to bypass CDN cache of the heavy 39KB image
|
||||
posterSrc = posterSrc.replace('-poster.webp', '-poster-v2.webp');
|
||||
|
||||
const posterAlt = props.backgroundImage?.alt || data?.posterImage?.alt || "E-TIB Gruppe Baustelle";
|
||||
|
||||
const ctaLabel = props.ctaLabel || props.linkText || data?.ctaLabel || 'Unternehmen entdecken';
|
||||
|
||||
6977
lh-report-prod-en-v10.json
Normal file
6977
lh-report-prod-en-v10.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user