From 5ecb74ad780b111764993f001c41c2e46c0231f6 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 7 Jan 2026 21:18:57 +0100 Subject: [PATCH] Update the html readme --- README.md | 9 ---- index.html | 147 +++++++++++++++++++++++++++++++++++------------------ 2 files changed, 97 insertions(+), 59 deletions(-) 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 @@ Nginx Cache Proxy

Nginx Cache Proxy

Proxy and cache any HTTP/HTTPS URL with automatic caching.

-
-

Quick URL Builder

- - +
+

Quick Copy

+

Copy this proxy URL with ?url= appended, then paste any URL after it:

+
-

Usage

+

Usage Examples

-
-

Basic Proxy

-
curl "http://localhost:3000/?url=https://api.example.com/data"
-
+

Basic Proxy (Cached)

+
Loading...
-
-

Skip Cache

-
curl -H "X-NoCache: 1" "http://localhost:3000/?url=https://api.example.com/data"
-
- -
-

Cache Custom Status Codes

-
curl -H "X-Status: 400" "http://localhost:3000/?url=https://api.example.com/bad"
-
- -
-

Purge Cache

-
curl "http://localhost:3000/purge/?url=https://api.example.com/data"
-
+

Skip Cache

+
Loading...

Features