ID Cache location fix pt3

I really should take a good look before I push the commits lul
This commit is contained in:
x3 2024-02-28 13:47:37 +01:00
parent d16f1b1cf3
commit 81fa050147
Signed by: x3
GPG Key ID: 7E9961E8AD0E240E
1 changed files with 2 additions and 2 deletions

View File

@ -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";