3
shouts

Get last-modified header from response in ASP.NET

posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 293 days, 21 hours, 58 minutes ago
Thursday, May 21, 2009 7:57:04 PM GMT

I’ve been working lately with some ASP.NET performance optimization automation HTTP modules. In one of them I needed to know if the last-modified header had been set through the Response.Cache.SetLastModified(DateTime) method. For some reason, there is no API available anywhere within the BCL to retrieve the last modified date of a response – you can only set it. Since the module wouldn’t work without a way to read the last modified date of the response, I had to use Reflector to figure out how to pull ...

category: ASP.NET | clicked: 7 | | source: madskristensen.net | show counter code
tags: HttpModule, Performance, Reflection

No comments yet, be the first one to post comment.

To post your comment please login or signup