服务器端包含在应用程序引擎上(<!-- include virtual=“header.html”-->)?

发布于 2024-08-30 07:16:51 字数 327 浏览 4 评论 0 原文

我已经尝试解决这个问题有一段时间了。我想让我的应用程序引擎网站随时使用基本的 html 和 shtml,以避免应用程序引擎上的 jsp 应用程序缓慢的预热阶段。这样我的登陆页面就能立即加载。

基本上,我试图将一个 html 文件包含到我的主 html 文件中(index.html - 我尝试过 index.shtml)。这是我尝试的命令:

<!-- include virtual="header.html" -->

但是它不起作用。服务器端似乎没有在应用程序引擎中执行。我是否需要首先在某处启用这些命令 - 或者应用程序引擎根本不允许它们?

I have been trying to figure this out a while. I would like to make my app engine website use basic html and shtml whenever in order to avoid the slow warm-up phase of jsp apps on app engine. This is so that my landing pages load instantly.

Basically, I am trying to include an html file into my main html file (index.html - I tried index.shtml). This is the command I try:

<!-- include virtual="header.html" -->

However it does not work. The server side includes to not seem to get executed in app engine. Do I need to enable these commands somewhere first - or does app engine simply not allow them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

王权女流氓 2024-09-06 07:16:51

SSI 是一项特定于网络服务器的功能,GAE 似乎不支持

(这是 Nick Johnson 的说法,他在这个网站上非常活跃。)

SSI is a web-server-specific feature that GAE appears not to support.

(This per Nick Johnson, who's quite active on this site.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文