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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UpdateHeaders(): better support no cache scenario, set expires = -1, pragma = no-cache and omit vary.
Motivation and goals
Our legacy code has a custom wrapper of HttCachePolicy and was modfied throughout whole request lifetime. None of attribute and middleware fit in existing design. To skip the design change and migrate to .net core first, I hope to add these functions.
In scope
A list of major scenarios, perhaps in priority order.
Out of scope
Scenarios you explicitly want to exclude.
Risks / unknowns
Please kindly point out other files I should modify.
Examples
Give brief examples of possible developer experiences (e.g., code they would write).
Don't be deeply concerned with how it would be implemented yet. Your examples could even be from other technology stacks.
The text was updated successfully, but these errors were encountered:
// Here set `vary` and `Expires`httpContext.Reponse.SetVaryByCustom("accept-encoding");httpContext.Reponse.SetExpires(2d);httpContext.Response.Cache.SetETag("ETag1");
....
httpContext.Response..Cacheability=HttpCacheability.NoCache;
httpContext.Response.Cache.SetNoStore();
Summary
Can I add more functions to
HttpCachePolicy
?no-store
headeretag
headerexpires = -1
,pragma = no-cache
and omitvary
.Motivation and goals
Our legacy code has a custom wrapper of
HttCachePolicy
and was modfied throughout whole request lifetime. None of attribute and middleware fit in existing design. To skip the design change and migrate to .net core first, I hope to add these functions.In scope
A list of major scenarios, perhaps in priority order.
Out of scope
Scenarios you explicitly want to exclude.
Risks / unknowns
Please kindly point out other files I should modify.
Examples
Give brief examples of possible developer experiences (e.g., code they would write).
Don't be deeply concerned with how it would be implemented yet. Your examples could even be from other technology stacks.
The text was updated successfully, but these errors were encountered: