diff --git a/README.md b/README.md index 53ac158..26c6cb0 100644 --- a/README.md +++ b/README.md @@ -20,21 +20,12 @@ curl "http://localhost:3000/?url=https://api.example.com/data" # Skip cache for this request curl -H "X-NoCache: 1" "http://localhost:3000/?url=https://api.example.com/data" - -# Cache custom status codes (e.g., 400s) -curl -H "X-Status: 400" "http://localhost:3000/?url=https://api.example.com/bad" - -# Purge cache for specific URL -curl "http://localhost:3000/purge/?url=https://api.example.com/data" ``` ## Features - **Always caches** 2xx status codes for 1 year - Cache size: 100GB max -- Request size: 128MB max - X-Cache-Status header shows cache status - X-NoCache header bypasses cache -- X-Status header caches custom status codes - Interactive web interface at root path -- Cache purge endpoint diff --git a/index.html b/index.html index 70a6bea..3d5864a 100644 --- a/index.html +++ b/index.html @@ -3,85 +3,132 @@
Proxy and cache any HTTP/HTTPS URL with automatic caching.
-Copy this proxy URL with ?url= appended, then paste any URL after it:
curl "http://localhost:3000/?url=https://api.example.com/data"-
Loading...
- curl -H "X-NoCache: 1" "http://localhost:3000/?url=https://api.example.com/data"-
curl -H "X-Status: 400" "http://localhost:3000/?url=https://api.example.com/bad"-
curl "http://localhost:3000/purge/?url=https://api.example.com/data"-
Loading...
X-Cache-Status header shows cache hit/missX-NoCache header bypasses cache