mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit adds support by default for HTTP caching when using `provideClientHydration`. Users can opt-out of this behaviour by using the `withoutHttpTransferCache` feature.
```ts
import {
bootstrapApplication,
provideClientHydration,
withNoHttpTransferCache,
} from '@angular/platform-browser';
// ...
bootstrapApplication(RootCmp, {
providers: [provideClientHydration(withNoHttpTransferCache())]
});
```
PR Close #49699
|
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| client_spec.ts | ||
| context_spec.ts | ||
| headers_spec.ts | ||
| jsonp_mock.ts | ||
| jsonp_spec.ts | ||
| module_spec.ts | ||
| params_spec.ts | ||
| provider_spec.ts | ||
| request_spec.ts | ||
| response_spec.ts | ||
| transfer_cache_spec.ts | ||
| xhr_mock.ts | ||
| xhr_spec.ts | ||
| xsrf_spec.ts | ||