angular/packages/common/http/src
Alan Agius 8eacb6e4b9 feat(http): exclude caching for authenticated HTTP requests (#55034)
This update modifies the transfer cache logic to prevent caching of HTTP requests that require authorization. To opt-out from this behaviour use the `includeRequestsWithAuthHeaders` option in `withHttpTransferCache`

BREAKING CHANGE: By default we now prevent caching of HTTP requests that require authorization . To opt-out from this behaviour use the `includeRequestsWithAuthHeaders` option in `withHttpTransferCache`.

Example:
```ts
withHttpTransferCache({
  includeRequestsWithAuthHeaders: true,
})
```

Closes: #54745

PR Close #55034
2024-04-19 06:25:22 -07:00
..
backend.ts refactor(http): introduce the functional interceptors API (#47502) 2022-10-06 19:02:45 +00:00
client.ts docs: Use new Urls to drop the docs url mapper (#55043) 2024-04-09 12:23:09 -07:00
context.ts feat(http): add has() method to HttpContext class (#43887) 2021-11-04 18:52:18 +00:00
errors.ts feat(http): allow customization of the HttpTransferCache. (#52029) 2023-10-06 12:12:47 -07:00
fetch.ts refactor: migrate common to prettier formatting (#54150) 2024-01-30 16:08:07 +00:00
headers.ts refactor: migrate common to prettier formatting (#54150) 2024-01-30 16:08:07 +00:00
interceptor.ts refactor(http): Do not contribute to stability when using provideHttpClientTesting (#54974) 2024-04-10 09:27:40 -07:00
jsonp.ts refactor: migrate common to prettier formatting (#54150) 2024-01-30 16:08:07 +00:00
module.ts docs: drop glossary links (#55044) 2024-03-28 13:02:50 -07:00
params.ts refactor: migrate common to prettier formatting (#54150) 2024-01-30 16:08:07 +00:00
private_export.ts refactor(http): Do not contribute to stability when using provideHttpClientTesting (#54974) 2024-04-10 09:27:40 -07:00
provider.ts refactor: migrate common to prettier formatting (#54150) 2024-01-30 16:08:07 +00:00
request.ts fix(http): manage different body types for caching POST requests (#54980) 2024-03-25 11:17:02 -07:00
response.ts refactor: migrate common to prettier formatting (#54150) 2024-01-30 16:08:07 +00:00
transfer_cache.ts feat(http): exclude caching for authenticated HTTP requests (#55034) 2024-04-19 06:25:22 -07:00
xhr.ts refactor: migrate common to prettier formatting (#54150) 2024-01-30 16:08:07 +00:00
xsrf.ts refactor: migrate common to prettier formatting (#54150) 2024-01-30 16:08:07 +00:00