Skip to content
This repository has been archived by the owner. It is now read-only.

Expose policy provider to allow override for default response caching behaviour #96

Closed
JunTaoLuo opened this Issue Jan 24, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@JunTaoLuo
Copy link
Contributor

JunTaoLuo commented Jan 24, 2017

Currently https://github.com/aspnet/ResponseCaching/blob/dev/src/Microsoft.AspNetCore.ResponseCaching/Internal/Interfaces/IResponseCachingPolicyProvider.cs is not exposed publicly. This type will need some work but exposing it will allow user overrides for checks on what is deemed cacheable, when response caching should apply, and expiry checks for cache entries.

@asser-dk

This comment has been minimized.

Copy link

asser-dk commented Nov 20, 2017

Being able to manipulate the cache entries would be great.

We have some data which doesn't change very often but which is accessed very frequently, however; when the data changes we would like to clear the cache immediately. Currently we're in-memory caching inside our business logic but it would be so much cleaner and simpler if we could somehow just clear the response cache for a given endpoint.

@aspnet-hello

This comment has been minimized.

Copy link

aspnet-hello commented Jan 2, 2018

This issue was moved to aspnet/AspNetCore#2612

@aspnet aspnet locked and limited conversation to collaborators Jan 2, 2018

@aspnet-hello aspnet-hello removed this from the Backlog milestone Jan 2, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.