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
22 lines
1.5 KiB
TypeScript
22 lines
1.5 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
export {HttpBackend, HttpHandler} from './src/backend';
|
|
export {HttpClient} from './src/client';
|
|
export {HttpContext, HttpContextToken} from './src/context';
|
|
export {HttpHeaders} from './src/headers';
|
|
export {HTTP_INTERCEPTORS, HttpHandlerFn, HttpInterceptor, HttpInterceptorFn, HttpInterceptorHandler as ɵHttpInterceptorHandler, HttpInterceptorHandler as ɵHttpInterceptingHandler} from './src/interceptor';
|
|
export {JsonpClientBackend, JsonpInterceptor} from './src/jsonp';
|
|
export {HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule} from './src/module';
|
|
export {HttpParameterCodec, HttpParams, HttpParamsOptions, HttpUrlEncodingCodec} from './src/params';
|
|
export {HttpFeature, HttpFeatureKind, provideHttpClient, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration} from './src/provider';
|
|
export {HttpRequest} from './src/request';
|
|
export {HttpDownloadProgressEvent, HttpErrorResponse, HttpEvent, HttpEventType, HttpHeaderResponse, HttpProgressEvent, HttpResponse, HttpResponseBase, HttpSentEvent, HttpStatusCode, HttpUploadProgressEvent, HttpUserEvent} from './src/response';
|
|
export {withHttpTransferCache as ɵwithHttpTransferCache} from './src/transfer_cache';
|
|
export {HttpXhrBackend} from './src/xhr';
|
|
export {HttpXsrfTokenExtractor} from './src/xsrf';
|