预呈现 HTTPS 可选站点

prerendering HTTPS optional site

Prerender 不适用于 https 站点。我想预渲染一个 google 学者页面。这些在 http 上显示得很好,除非客户端登录到 google,在这种情况下,服务器(似乎)重新路由到 https。

有什么解决办法吗?

只对 chrome 感兴趣并正在编写扩展程序。

此外,如果 PreRender 因为它是 https 而失败,它还会提前进行 ssl 握手和 dns 查找吗?或者只是我单独编码?

预渲染 works on https since 2011 (source code).

但是,根据功能设计documentation

If the server sends a redirect response for a subresource with a "Follow-Only-When-Prerender-Shown: 1" header, Chrome will hold off on following the redirect and on fetching the respective subresource until the prerender is shown to the user.

这意味着如果一个页面是空的并且只是重定向到另一个url,这个空页面是预呈现的。