@returns true when the request contains authentication or cookie headers.
(req: HttpRequest<unknown>)
| 343 | |
| 344 | /** @returns true when the request contains authentication or cookie headers. */ |
| 345 | function hasAuthHeaders(req: HttpRequest<unknown>): boolean { |
| 346 | const headers = req.headers; |
| 347 | |
| 348 | return ( |
| 349 | headers.has('authorization') || headers.has('proxy-authorization') || headers.has('cookie') |
| 350 | ); |
| 351 | } |
| 352 | |
| 353 | const UNCACHEABLE_CACHE_CONTROL_DIRECTIVES = new Set(['no-store', 'private', 'no-cache']); |
| 354 |
no test coverage detected