From 81fa0501479decbf764ed1219d7bf42cf4841df4 Mon Sep 17 00:00:00 2001 From: x3 Date: Wed, 28 Feb 2024 13:47:37 +0100 Subject: [PATCH] ID Cache location fix pt3 I really should take a good look before I push the commits lul --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fcbe498..871171e 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ server { (Optional) Caching based only on file id can be enabled with this example configuration ```cfg -# Will match '/-{id}' '/-{id}/' '/-{id}/name' but not '/-{id}/name/other' -location ~ ^/-([a-zA-Z0-9]+)(?:/?$|/[^\/]+$) +# Will match '/-{id}' '/-{id}/' '/-{id}/name' but not '/-{id}/name/' or '/-{id}/name/other' +location ~ ^/-([a-zA-Z0-9]+)(?:/?$|/[^/]+$) # Other caching options are omitted here... proxy_cache_revalidate on; proxy_cache_key "$host$1";