Commit Graph

71 Commits

Author SHA1 Message Date
Ryan Brandenburg 94d78e22c8 Upgrade to netcoreapp22 2018-05-08 11:10:18 -07:00
John Luo 0efe83b4f2 Update usage of TestSink 2018-04-12 16:28:32 -07:00
John Luo d9778252d0 Sort header and query values 2018-02-27 13:42:46 -08:00
John Luo c29531f2eb Delimit key values for query strings 2018-02-22 14:57:59 -08:00
John Luo 19e943e6b9 Update base key
- Add Scheme, Host, Port and PathBase
2017-11-20 12:45:28 -08:00
Pranav K 511b9ab323 Update samples and tests to target netcoreapp2.1 2017-11-15 14:10:21 -08:00
Nate McMaster f616f3e891 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 16:27:57 -07:00
Nate McMaster e87f13d267 Use PackageLineup to manage PackageReference versions 2017-08-29 12:14:28 -07:00
Nate McMaster 7e22244eed Use Directory.Build.props/targets 2017-08-29 12:13:48 -07:00
Nate McMaster 853e62216e Upgrade to xunit 2.3.0-beta4
Includes a few changes as required by new analyzers added in the upgrade
2017-08-22 17:44:08 -07:00
John Luo f125329ed7 Use private instance of MemoryCache and impose size limit 2017-07-10 15:15:16 -07:00
Pranav K 3909a5ce88 Remove usage of TaskCache 2017-06-08 09:06:18 -07:00
John Luo a05ad22173 Target NETStandard2.0 2017-05-22 15:29:37 -07:00
Nate McMaster 83ddb276f6 Remove workaround from test project 2017-05-15 12:36:54 -07:00
John Luo 1be9dc10ab netcoreapp2.0 (#121) 2017-05-05 10:11:29 -07:00
Kiran Challa 33a3be4a16 Converted sample and test project to run on netcoreapp2.0 2017-03-23 17:04:47 -07:00
Pranav K 25ec1f9bd7 Remove net451 as a cross-compile target 2017-03-22 18:28:32 -07:00
Nate McMaster 6d59c8b589 Unify dependency versions to one file and remove workarounds 2017-03-15 16:50:26 -07:00
Ajay Bhargav Baaskaran a48c0cacca Using NullLogger types from Logging.Abstractions (#115) 2017-03-14 12:18:12 -07:00
Doug Bunting 79f723c5e1 Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
2017-02-14 13:23:01 -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
Nate McMaster 267f5134c8 Upgrade to VS 2017 2017-02-01 12:15:45 -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
Pranav K a5717aa583 Updating to 4.4 CoreFx packages 2016-12-14 14:47:31 -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
Pranav K f26ef2e50c Updating versions to 1.2.0-* 2016-11-09 14:19:20 -08:00
John Luo 63c0bec743 Update version to 1.1.0-* 2016-10-28 14:34:52 -07:00
moozzyk 70fce81d7d Adding additional test coverage 2016-10-24 17:24:36 -07: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
Pranav K cbbcab2a0d Updating to netcoreapp1.1 2016-10-13 11:24:00 -07:00
John Luo bc6fff40e6 Use 1.0.0 dependencies 2016-10-12 16:42:40 -07:00
Pranav K 794cc5359b Revert "Updating to netcoreapp1.1"
This reverts commit 8656065f88.
2016-10-12 16:09:33 -07:00
Pranav K 8656065f88 Updating to netcoreapp1.1 2016-10-12 13:46:23 -07:00
John Luo 54610b8fe4 Handle null or empty vary rules 2016-10-06 19:06:02 -07:00
John Luo 9d54cf1e8a Move ResponseCacheFeature to new Abstractions package (#67)
Move ResponseCacheFeature to new Abstractions package and update package version numbers
2016-10-06 15:59:14 -07:00
John Luo 3b2a2eb892 Add logging 2016-10-05 18:01:01 -07:00
John Luo 9e5dbee208 Cache should use weak comparison for ETags 2016-10-04 16:04:14 -07:00
Pranav K aec2a7c2d2 Updating partner package versions 2016-10-03 14:27:49 -07:00
John Luo aa52e66585 Make DistributedResponseCacheStore internal (#61)
Remove DistributedResponseCacheStore and move all interfaces to the Internal namespace
2016-09-30 11:24:44 -07:00
John Luo 24385e74c4 Internalize iresponsecachekeyprovider (#59)
Make IResponseCacheKeyProvider internal
2016-09-29 10:43:56 -07:00
John Luo 10381b0456 Use HttpMethods 2016-09-28 18:22:57 -07:00
John Luo 44b0dfd5bb Sharding (#57)
Add sharding support for MemoryResponseCacheStore

- update CachedResponse API to use streams
- added empty IResponseCacheEntry interface
2016-09-28 11:58:16 -07:00
John Luo a069f6b636 Store each header value separately 2016-09-21 13:44:11 -07:00
John Luo 5e12a103a4 API updates
- Internalize properties on ResponseCacheContext unless required by extension points
 - Rename VaryByParams -> VaryByQueryKeys
2016-09-21 13:41:46 -07:00
John Luo 6891d00032 Stricter expiration checks to avoid serving responses when max-age is 0
Cache parsed response headers for performance
2016-09-20 12:32:51 -07:00
John Luo c30d471c27 Make IResponseCacheStore APIs async 2016-09-20 12:06:56 -07:00