feat(19.3-04): shared site cache purge route POST /api/__site__/cache/purge

- server/lib/siteCachePurge.ts and the route, byte for byte from
  vue-faq-layer (sha256 pinned in tests/sitePurge.test.ts)
- runtimeConfig.siteCache.purgeToken (NUXT_SITE_CACHE_PURGE_TOKEN) and the
  '/api/__site__/**': { cache: false } route rule
- /api/__journal__/cache/purge, app/utils/siteCache.ts and
  journal.cachePurgeToken unchanged, documented as aliases for one release
- version 0.4.0
This commit is contained in:
Jakub Zych
2026-10-15 18:35:47 +02:00
parent 25e9bfe8da
commit 3e0b37756e
6 changed files with 258 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "vue-journal-layer",
"version": "0.3.0",
"version": "0.4.0",
"private": true,
"type": "module",
"main": "./nuxt.config.ts",