Commit Graph

22 Commits

Author SHA1 Message Date
Chris R 1bc5ade59f React to StringSegment changes 2017-05-23 15:31:55 -07:00
Chris R 421ac4bc97 React to StringSegment changes 2017-05-23 11:41:08 -07:00
John Luo 551fe5e6f1 React to HeaderUtilities renames 2017-02-28 14:42:00 -08:00
John Luo 7190412979 Tigger caching header finalization on write #92 2017-02-08 16:06:20 -08:00
John Luo d43f05189a Overwrite headers when serving response from cache #101 2017-02-03 15:20:38 -08:00
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 2eb66dc684 Merge branch 'rel/1.0.0' into rel/1.0.0-preview1 2016-10-17 11:59:05 -07: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
John Luo 7300d9e936 Refactoring ResponseCacheContext
- Extract key creationg into a service
- Extract cacheability checks into a service
- Add a ResponseCachingState feature to preserve response cache context between operations
- Recognize Set-Cookie as not-cacheable
2016-09-07 15:50:22 -07:00
John Luo 02b8fb3bbc Use TaskCache class from Microsoft.Extensions.TaskCache.Sources 2016-09-07 11:33:05 -07:00
John Luo d72ef128dd Adding options to specify maximum response body size 2016-09-02 11:57:59 -07:00
John Luo 3b0f01a8ec Customize key prefix instead of suffix 2016-09-02 11:54:04 -07:00
John Luo 8c5a5f7394 Use ObjectPool for StringBuilder 2016-08-26 13:50:58 -07:00
John Luo fb724a71de Add configurable options for ResponseCaching
Override RequestIsCacheable

Override ResponseIsCacheable

Append customized cache key
2016-08-25 16:26:25 -07:00
John Luo 62aabc1bae Add implementation for HTTP caching 2016-08-15 13:00:24 -07:00
John Luo a40cc88169 IResponseCache adapter and support for vary by header 2016-08-04 17:50:07 -07:00
John Luo 1628d42b43 Clean up and update to post RTM 2016-07-27 10:41:38 -07:00