@returns true when the request contains authentication or cookie headers.
(req: HttpRequest<unknown>)
| 317 | |
| 318 | /** @returns true when the request contains authentication or cookie headers. */ |
| 319 | function hasAuthHeaders(req: HttpRequest<unknown>): boolean { |
| 320 | const headers = req.headers; |
| 321 | |
| 322 | return ( |
| 323 | headers.has('authorization') || headers.has('proxy-authorization') || headers.has('cookie') |
| 324 | ); |
| 325 | } |
| 326 | |
| 327 | const UNCACHEABLE_CACHE_CONTROL_DIRECTIVES = new Set(['no-store', 'private', 'no-cache']); |
| 328 |
no test coverage detected
searching dependent graphs…