【问题标题】:Outputcache and HttpModule输出缓存和 HttpModule
【发布时间】:2012-07-27 17:05:07
【问题描述】:

我有一个 HTTP 模块,它用我们的 CDN 的 URL 替换静态内容的相对 URL。然而,当这个模块被添加到 web.config 时,它会导致我们的 Outputcache 不再工作。

我尝试在 web.config 中弄乱 httpModules 的顺序,但没有成功。有什么想法吗?

【问题讨论】:

  • 我正在使用varybycustom。这是针对网络表单的,顺便说一句

标签: httpmodule outputcache


【解决方案1】:

也许您在 HttpModule 中调用 Response.End()。 Rick Strahl 写道:

...在请求结束时指定 Response.End() 代码会导致 UpdateRequestCache() 永远不会触发并将内容放入缓存中。 更多信息:Don’t use Response.End() with OutputCache

【讨论】:

    猜你喜欢
    • 2013-07-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多