开发者

Canonical URLs for JS and CSS, HTTP vs HTTPS

I am using the IIS Search Engine Optimization Toolkit to scan over a site of mine. One of the compaints it has is that there are multiple canonical URLs for my static assets, e.g.

  • http://example.com links to http://example.com/styl开发者_StackOverflowes.css
  • https://example.com links to https://example.com/styles.css

It is of course correct, the same file is linked differently on the secure pages. This is only happening for static resources, the actual HTML pages all have single canonical URLs.

Should I leave this as is an ignore the toolkit or is there a better arrangement. I need to consider all angles, e.g.

  • Performance (browser caching, server load)
  • SEO (duplicate content penalties)
  • Usability (mixed content warnings)

Thanks for your help!


You need to decide if it's better for you to receive this message from your analysis toolkit, or for your customers to be told that not all items on the page are secure.

I know what my choice would be...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜