When rewriting cache.config in YAML, make it not additive.
- Lingua principale
- C++
- Stelle
- 2k
- Fork
- 874
- Merge medio
- 5g 11h
- PR unite (30g)
- 56
Descrizione
cache.config is currently additive.
https://docs.trafficserver.apache.org/en/9.0.x/admin-guide/files/cache.config.en.html#matching-multiple-rules
> When multiple rules are specified in cache.config, Traffic Server will check all of them in order for each request. Thus, two rules which match the same request but have conflicting actions will result in their actions being compounded. In other words, Traffic Server does not stop on the first match.
This is highly unintuitive and unexpected. Furthermore, because the match logic isn't very powerful, it's not possible to do certain things.
I'm making this issue as a placeholder so we don't forget: when we rewrite it in YAML, we should make it not additive, or possibly extend the matching capabilities to be more powerful, so things like `suffix=jpeg` and `suffix!=jpeg` are possible, or possibly both.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il comportamento di matching di cache.config descritto nella documentazione collegata, quindi esamina l’ambito della riscrittura YAML pianificata. L’issue sarà completa solo dopo aver deciso e implementato la semantica del matching e le eventuali capacità di matching necessarie, documentando e testando il comportamento corrispondente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- yaml
- Ambito
- networking
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 20/100