⛩️ Cache & Compression Proxy
Find a file
Tina Wang ec5c9ff42e
⬆️ Bump version
2023-10-30 11:38:01 +01:00
.env.sample 🐛 Fix cache re-fetch 2023-05-16 14:06:53 +02:00
.gitignore 🚀 Init commit 2023-05-08 23:26:19 +02:00
app.js Add cache indication header on response 2023-10-30 11:37:34 +01:00
bun.lockb Some small improvements 2023-07-26 14:58:02 +02:00
package.json ⬆️ Bump version 2023-10-30 11:38:01 +01:00
README.md Refetch payload method 2023-05-10 11:20:12 +02:00

⛩️

Usage

{ TORII_BASE_URL} / { TARGET API URL }

ex: https://torii.domain.url/https://some-api.domain.url/product_list?year=2023

⚠️ Only works with json payload.

GET

/ping - return "🏓" - check if alive.

📡 Fetch remote_url payload, compress it to brotli format and cache it.

PUT

X-API-KEY necessary

📡 Refetching cache with key matching or starting with specified remote_url.

DELETE

X-API-KEY necessary

🔥 Purging cache with key matching or starting with specified remote_url.