Trident Templates¶
Configuration starting points for the current Trident 1.8.0 Core parser. The examples below are JSON: save them as /etc/trident/config.json, select that file in /etc/default/trident, and adjust the backend and served Host allowlist. Do not save JSON under a .toml extension.
What validation establishes
Parser checks establish schema/configuration acceptance only. They do not run a storefront, validate customer privacy, prove invalidation delivery or qualify an installed platform/version. Existing integration evidence has its own exact package, runtime and workload scope. Drupal, Strapi, Ghost, Payload, Shopify Headless, Medusa.js, Saleor, FastAPI, Spring Boot, Next.js and Nuxt.js remain configuration-only examples here; Rails remains beta/unqualified. A listed cache-tag header must actually be emitted and integrated with invalidation by the application.
E-Commerce Platforms¶
| Platform | Cache Tags | Key Features |
|---|---|---|
| Magento 2 | X-Magento-Tags |
GET-only GraphQL TTL, static/media and bypass rules |
| WooCommerce | X-Cache-Tags |
Cart/checkout bypass, logged-in user detection |
| Shopware 6 | X-Cache-Tags |
Storefront and API rules |
| PrestaShop | X-Cache-Tags |
Module-aware rules |
| Sylius | X-Cache-Tags |
Symfony-based rules |
| Shopify Headless | X-Cache-Tags |
Storefront API caching |
| Medusa.js | X-Cache-Tags |
API-first caching |
| Saleor | X-Cache-Tags |
GraphQL caching |
CMS Platforms¶
| Platform | Cache Tags | Key Features |
|---|---|---|
| WordPress | X-Cache-Tags |
WooCommerce bypass and explicit context-vary rules |
| Drupal | X-Drupal-Cache-Tags |
Expected origin cache-tag header |
| Strapi | X-Cache-Tags |
Headless CMS API caching |
| Ghost | X-Cache-Tags |
Blog-optimized rules |
| Payload CMS | X-Cache-Tags |
API route caching |
Web Frameworks¶
| Framework | Language | Key Features |
|---|---|---|
| Laravel | PHP | Livewire bypass, Sanctum auth, Vite assets |
| Symfony | PHP | ESI support, profiler bypass |
| Django | Python | Admin bypass, session handling |
| FastAPI | Python | API endpoint caching |
| Ruby on Rails | Ruby | Beta; assets/session bypass example |
| Spring Boot | Java | Actuator bypass, API caching |
| Next.js | JavaScript | _next asset rules; ordinary origin TTL |
| Nuxt.js | JavaScript | _nuxt asset caching, API rules |
Quick Start¶
- Pick a platform example and save its complete JSON object to a local
config.json. - Set the backend address, replace
cache.poisoning.known_hostswith your real served hostnames, and set a strongTRIDENT_ADMIN_TOKENin the service environment. Keep admin and metrics loopback-only unless you deliberately configure protected access. - Preserve existing operator configuration. For a new JSON deployment, install the reviewed file and select it with
TRIDENT_CONFIG=/etc/trident/config.jsonin/etc/default/trident. Do not overwrite an existing TOML deployment without an explicit migration. -
Validate the exact selected file before a service reload/restart:
-
Follow the package-specific installation instructions for your package and service manager (or the corresponding RHEL, Alpine, FreeBSD, Docker or binary-install page). An environment-file change requires the documented restart procedure; a successful parser check does not apply configuration or prove that a service started.
- Verify complete public/private/customer/cart bodies, cache MISS/HIT and invalidation for your actual application before deployment. A response TTL rule cannot reverse a request-phase bypass, and per-rule TTLs are capped by
ttl.max.
Customizing Templates
These examples require deployment-specific review. You should review the cache rules and adjust TTLs based on your specific needs. See the Configuration page for all available options.