0

我刚刚发现<esi:include src="url" />使用网络路径引用是不可能的;它在包含中返回错误。

是否可以包含省略协议/方案的绝对 URL?

我需要通过httphttps包含页面,具体取决于调用页面的协议/方案

(所以如果我包含在http://example.com/container中,请包含http://example.com/included,或者如果我包含在https://example.com/included中,请包含https://example.com/included .com/容器

4

1 回答 1

0

我刚刚发现我的问题不在于ESI Include

包含始终可以通过https完成,不需要适应httphttps;显然它发生在服务器端。

我的具体问题是与客户端相关的,因为包含的代码中的资源(CSS、JS)是从<base href>容器中的集合中获取方案/协议的;所以原因是后一个(始终设置为http),而不是因为ESI include

于 2014-06-17T13:50:38.653 回答