antoinechalifour / antoinechalifour/memento

Add a "matchPolicy" option

Aperta
#69 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement hacktoberfest
Lingua principale
TypeScript
Stelle
392
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

To determine how Memento matches incoming requests with the cache. Could be something like

- `matchPolicy: 'all'` -> by default, same as current behaviour
- `matchPolicy: ['headers', 'body']` to match an incoming request based on their URL, headers and body
- `matchPolicy: ['headers.Authorization']` to match an incoming request based on the URL and the `authorization` header

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.