-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
In-PRIssues that have a PR open for them.Issues that have a PR open for them.up for grabsWe'd accept a contribution for thisWe'd accept a contribution for this
Description
Summary
Can I add more functions to HttpCachePolicy?
- SetNoStore(): add
no-storeheader - SetETag(string etag): add
etagheader - UpdateHeaders(): better support no cache scenario, set
expires = -1,pragma = no-cacheand 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.
Metadata
Metadata
Assignees
Labels
In-PRIssues that have a PR open for them.Issues that have a PR open for them.up for grabsWe'd accept a contribution for thisWe'd accept a contribution for this