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