LinkedIn shows an old Magento 2 product image. How to trace Open Graph and the preview cache

2 min read

Two silver link previews showing different versions of a product photo beside a refresh symbol

When LinkedIn shows an older photo, check the product source, the response from the image URL and the preview itself. Begin with the exact address you intend to share.

Read the metadata and open the image without signing in

Record the final product URL after redirects. Inspect og:url and every og:image in the HTML source. Meta OG 1.0.27 uses the product’s dedicated OG image. When that field is empty, it uses the catalog image if available. Open the image URL in a clean session and record the final URL, status and media type. If the source or file still shows the previous version, fix that layer of the storefront first. Kowal Meta OG. Module documentation.

Log the result of refreshing the preview

The local test ran the module code with a sample preview cache. For https://shop.example/product-a.html, both files had their own URLs under /media/catalog/product/. After the tag changed, the source showed the new image. The stored preview picked it up on refresh.

Readings from the local preview refresh test
RunTime UTCImage in sourceFile responsePreview image
Before the change18:36:41.449og-v1.jpg200 image/jpegog-v1.jpg
After updating the storefront18:36:41.464og-v2.jpg200 image/jpegog-v1.jpg
After fetching again18:36:41.470og-v2.jpg200 image/jpegog-v2.jpg

Once the source and public image are correct, paste the exact product URL into LinkedIn Post Inspector. Record the date and time, the inspector result, and the image in the preview of a new post. LinkedIn describes the refresh for new shares. Previously published posts keep their old preview. LinkedIn Post Inspector instructions.

For title, description and image setup, see the earlier Meta OG guide.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)