页面缓存——在服务器中发起第一个页面请求

发布于 2024-08-29 18:50:09 字数 165 浏览 1 评论 0原文

我在我的应用程序中实现 Outputcache 并且它工作正常,但是第一次总是需要大量加载,并且下一个请求会更快...

我想知道是否有一种方法可以启动页面缓存服务器端并在第一个请求时提供缓存的页面,而不是由用户第一次触发。

任何想法/建议都将非常受欢迎。

此致, TT

I'm implementing Outputcache in my application and it works fine, but the first time always take a lot to load and the next following request will be faster...

I would like to know if there is a way to initiate the page caching on the server side and serve the cached page upon the very first request, rather than have it triggered by the user one first time.

Any ideas/suggestions will be very much welcome.

Best regards,
TT

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

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

发布评论

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

评论(1

又爬满兰若 2024-09-05 18:50:09

看一下 IIS 预热模块,您可以配置它将调用的页面,然后当您部署新站点时,它将导致构建页面缓存。

现已推出:IIS 7.5 应用程序预热模块

另一个需要考虑的功能是在 .NET 4.0 中,您可以使 OutputCache 基于磁盘,这将允许缓存在应用程序池重置之间持续存在,除了预热模块之外,您可能还需要考虑这一点。

Take a look at the IIS Warm up module, you can configure the pages it will invoke which then when you deploy your new site it will cause the page cache to be built.

Now Available: The IIS 7.5 Application Warm-Up Module

Another feature to consider is in .NET 4.0 you can make the OutputCache be disk based which will allow the cache to persist between the app pool being reset, you may want to consider this in addition to the warm up module.

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