Emit cache tags as a CDN surrogate-key header

Offen
#2,935 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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).

Vorherrschende Sprache
C#
Sterne
569
Forks
107
Ø Merge
4 Std. 1 Min.
Gemergte PRs (30 T.)
235

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fluentcms/FluentCMS

Alle Issues in fluentcms/FluentCMS

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.