何时使用服务器端包含?
在 apache 关于 SSI 的文档中,它说:“SSI 是添加小块信息(例如当前时间)的好方法。但是,如果页面的大部分是在提供服务时生成的,则需要查看寻求其他解决方案。” 没关系,但在某些问题上有些不清楚。例如,这是否意味着使用 SSI 处理小块信息比 CGI 替代方案更好?也许更快?如果 CGI 可以完成任何事情,那么 SSI 有何用处? ETC。
In apache's doc about SSI it says that: "SSI is a great way to add small pieces of information, such as the current time. But if a majority of your page is being generated at the time that it is served, you need to look for some other solution."
That's alright but is somewhat unclear on some matters. For example does it mean that using SSI for small pieces of information is better than the CGI alternatives? Faster, maybe? How is SSI useful if anything can be done with CGI? etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SSI 语法非常简单,并且它内置于 apache 中,因此它可能比任何非 apache 模块都快,并且比 CGI 更快且资源消耗更少(spawn-an-任意可执行进程为每个-现在几乎没有人使用的请求类型)。
The SSI syntax is very simple, and it's built into apache, so it is probably faster than anything that's not an apache module, and WAY faster and less resource intensive than CGI (the spawn-an-arbitrary-executable-process-for-each-request kind that hardly anyone uses nowadays).