Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 https 和 http 协议,我对 google PlusOne 的计数有所不同。
有没有人经历过这种行为并有任何解决它的建议。
我正在使用此处显示的典型实现。
我还发现了这个关于规范 url 的链接,但我认为这与这种情况无关,因为我没有替代规范 url,只有在 2 个不同协议上提供的重复内容。
不同 URL 引用的页面是不同的。可以通过 HTTP 和 HTTPS 提供不同的内容。因此,如果您想拥有相同的计数器,则需要在计数器参数中指定规范的 URL(有或没有 https,由您决定)。