将查询字符串附加到缓存的资源/图像(例如 Image.jpg?1234)是否会对 SEO 产生影响?
我们遇到一个问题,需要将查询字符串附加到资产中,以允许我们的 CDN 提供商看到同一图像的新版本。 CDN 提供商(几乎所有 CDN 提供商)可以将附加到资产的查询字符串视为图像的新版本。
将查询字符串附加到图像链接以指示它是 CDN 的新版本是否会对 SEO 产生影响?
示例:搜索引擎过去会看到 Image.jpg 被许多页面引用,现在他们会看到 Image.jpg?1234 被引用。这会对SEO产生负面影响吗?我们的一些图像名称已经链接了相当长一段时间,我们不希望对我们的图像排名(在 Google 中)产生负面影响。
We're having an issue where we need to append querystrings to assets to allow our CDN provider to see a new version of the same image. The CDN provider (well nearly all CDN providers) can treat querystrings appended to an asset as a new version of the image.
Is there an SEO impact to appending a querystring to an image link to indicate it's a new version to the CDN?
Example: Search engines used to see that Image.jpg was referenced by many pages, now they would see that Image.jpg?1234 is referenced. Will this have a negative impact on SEO? Some of our image names have been linked to for quite some time and we wouldn't want to negatively impact our image rankings (in Google).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
附加查询字符串可能会导致图像出现标准化问题。您可能想尝试添加
Link:; rel="canonical"
http 标头添加到您的图像响应中,以将它们规范化回原始源。这样搜索引擎就会清楚地知道这些不是新图像。需要注意的是......这是 Google 提供的一个新实现=> “支持 rel="canonical" HTTP 标头”。所以目前还不清楚这是否适用于 Bing / Yahoo……我的猜测还不是。
Appending query strings could cause a canonicalization issue with your images. You might want to try adding the
Link: <URL>; rel="canonical"
http header to your image responses to canonicalize them back to the originating source. This way it'll be clear to the search engines that these are not new images.One caveat ... This is a new implementation provided by Google => "Supporting rel="canonical" HTTP Headers". So it's not clear whether this works for Bing / Yahoo at this time ... my guess is not yet.