Commit Graph

7 Commits

Author SHA1 Message Date
John Luo 3bf5f6a1ce Restructure response caching middleware flow
- Always add IresponseCachingFeatu8re before calling the next middleware #81
- Use If-Modified-Since instead of the incorrect If-Unmodified-Since header #83
- Handle proxy-revalidate in the same way as must-revalidate #83
- Handle max-stale with no specified limit #83
- Bypass cache lookup for no-cache but store the response #83
- Bypass response capturing and buffering when no-store is specified #83
- Replace IsRequestCacheable cache policy with three new independent policy checks to reflect these changes
- Modify middleware flow to accommodate cache policy updates
2017-01-10 14:48:39 -08:00
John Luo 8e8525512d Performance optimizations
- Calculate age using operations on long
- Compute content length of resposne on store
- Format age using the new HeaderUtility
- Lazily create HeaderDictionary
- Use for instead of foreach to reduce allocations from enumerators
2016-12-14 11:37:13 -08:00
John Luo e01431f33c Relocate improvements to HttpAbstractions 2016-12-09 15:53:15 -08:00
BrennanConroy 9c94a7764b Improve header parsing performance 2016-12-09 14:23:15 -08:00
John Luo 8acf71457e API review feedback
Rename middleware components ResponseCache => ResponseCaching

Move ResponseCachingOptions to Microsoft.AspNetCore.ResponseCaching namespace

Rename extension methods
2016-10-17 11:33:09 -07:00
John Luo 6c13371fa0 API review renames and updates continued
- Consolidate base key to be singular
2016-09-15 11:40:51 -07:00
John Luo ccfa090e6e API review renames and updates 2016-09-14 11:07:23 -07:00