Emit cache tags as a CDN surrogate-key header

Aperta
#2,935 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

Start by locating DeliveryResponse, where the cache tags are computed, and CacheInvalidatedEvent to compare its tags with the response tags. Then find Spec 4.10 and the webhooks plugin documentation. Done means the configurable header is off by default, carries the same tags as the invalidation event when enabled, and the spec explains tag purging with a CDN example.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:api type:feature

Problem

DeliveryResponse already computes the site:, type: and entry: tags it gives the output cache, but a CDN in front of the host cannot use them, so it must expire by time or purge by URL.

Proposal

  • Emit the tags as a configurable header (Cache-Tag, Surrogate-Key or a custom name) on Delivery responses, off by default.
  • Document purging by tag from CacheInvalidatedEvent through the webhooks plugin, with an example for a common CDN.

Acceptance

  • With the header configured, Delivery responses carry their tags and without it they carry none
  • CacheInvalidatedEvent names the same tags the header carried
  • Spec 4.10 documents the header and the purge pattern

From the review recommendations (#2890).

Lingua principale
C#
Stelle
569
Fork
107
Merge medio
4h 1m
PR unite (30g)
235

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.