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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 837 | Hits: 59

Similar Posts

  • New Entity Framework Feature CTP for VS2010 Beta 2 more
  • Problems with Silverlight DataContractJsonSerializer. more
  • Twilight Source Code Published more
  • Twilight 1.1: Using a Yahoo Pipes Proxy more
  • Error: Can't connect to the database during WSS / MOSS Configuration more
  • Performance Research: Browser Cache Usage - Exposed! more
  • Accessibility / Section 508 with ASP.NET more
  • How to format currency values for special languages in .NET 2.0 more
  • Recipe: Enabling Windows Authentication within an Intranet ASP.NET Web application more
  • Obscure language bug #29: Intrinsics and operator overloading more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD