Commit 4ea6832
Fix InvokeFeatures.Set to bump revision for body-wrapping middleware
InvokeFeatures.Set<TFeature> was updating the feature dictionary without
incrementing _containerRevision. ASP.NET Core's FeatureReferences cache
uses Collection.Revision to detect feature swaps; without the bump, cached
feature references stay stale after middleware (e.g. OutputCache,
ResponseCompression) replaces a feature via HttpContext.Response.Body =
wrapper. The result was that response writes bypassed the wrapper entirely,
so OutputCache cached zero-byte bodies and subsequent cached responses
returned empty.
Resolves #1702.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0c8b3c1 commit 4ea6832
2 files changed
Lines changed: 16 additions & 4 deletions
File tree
- .autover/changes
- Libraries/src/Amazon.Lambda.AspNetCoreServer/Internal
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
0 commit comments