Don’t use Response.End() with OutputCache
Posted by: Rick Strahls WebLog,
on 21 May 2009 |
View original | Bookmarked: 0 time(s)
This might be one of those Duh moment posts that seems real obvious now, but this particular issue trying to get OutputCache to work in an HttpHandler and having it not work because of an errand Response.End() - has caused me grief on a few occasions. Some time ago I posted a JavaScript Resource handler that serves server side ASP.NET resources to client side JavaScript. Bertrand commented on that post that I should be using OutputCache instead of writing values to the ASP.NET Element Cache as I...