dotnet/aspnetcore

Cache invalidation

Open

#2,622 opened on Jan 2, 2018

View on GitHub
 (10 comments) (10 reactions) (0 assignees)C# (10,653 forks)batch import
Needs: Designaffected-fewarea-middlewareenhancementfeature-response-cachinghelp wantedseverity-nice-to-have

Repository metrics

Stars
 (37,933 stars)
PR merge metrics
 (Avg merge 16d 9h) (258 merged PRs in 30d)

Description

From @JunTaoLuo on Thursday, September 15, 2016 2:15:48 PM

Currently we only set the absolute timeouts for cache entries. There is no mechanism to explicitly invalidate a cache entry before expiry. Also, how would applications/users interact with this feature?

Note that invalidation is required by the RFC for unsafe methods, e.g. a successful PUT should invalidate any previous cached resources at the same URI.

Copied from original issue: aspnet/ResponseCaching#38

Contributor guide