fix(images): force rewrite CMS poster URL to -v2 to guarantee cache bust

This commit is contained in:
2026-07-03 01:15:42 +02:00
parent 54f54cfda5
commit 1fce718cee
2 changed files with 6981 additions and 1 deletions

View File

@@ -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

File diff suppressed because one or more lines are too long