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.
在我的 asp.net 项目中,我有一些只是 html 和 JavaScript 的页面,它们具有 aspx 扩展名。现在我想知道将它们制作成 html 文件(而不是 aspx)是个好主意吗?是否影响性能,不是很重要吗?
Html总是比 aspx 运行得快,因为aspx必须在服务器端处理。
您可以只为这些页面打开缓存,它们会运行得更快,可能与 html 一样。但是如果您使用的是 IIS 6,那么 html 肯定会更快,因为 IIS 6 将直接提供 html 文件,并将转到整个 asp.net 架构来提供服务。IIS 7 总是使用 asp.net 架构。