-
Notifications
You must be signed in to change notification settings - Fork 26.3k
feat(http): Add support for fetch request cache and priority options #61766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
6d1388c
to
ef37d29
Compare
Enhances Angular HttpClient requests with Fetch API cache and priority options to optimize loading and performance.
ef37d29
to
4a18afd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
reviewed-for: fw-general, public-api
@kirjs It is possible to run the lint again, it seems to have been a sporadic error. |
@SkyZeroZx The linting error is correct, you need to reformat the file. |
@JeanMeche |
Could you update your local main branch and try rebasing ? |
We don't accept merge commit in the PR we merge, we'll need a rebase instead. |
db7dfeb
to
1c012be
Compare
@JeanMeche I already updated it |
@JeanMeche The linter has already been fixed, you can re-run what is failing this time if it is something from the unstable adev tests |
This commit adds support for the Fetch API's
cache
andpriority
options when usingHttpClient
with thewithFetch
provider.The change includes:
cache
andpriority
to theHttpRequestInit
interfaceFetchBackend
to pass the optionsMotivation / Use Cases
The
cache
andpriority
options are particularly useful for:cache: 'no-store'
,'reload'
, etc.)priority: 'high'
,'low'
,'auto'
)Proposed Solution
cache
andpriority
to theHttpRequestInit
interfaceHttpRequest
classFetchBackend
to the native Fetch APIExamples of New Usage