ID Cache location fix pt3
I really should take a good look before I push the commits lul
This commit is contained in:
parent
d16f1b1cf3
commit
81fa050147
|
@ -38,8 +38,8 @@ server {
|
||||||
|
|
||||||
(Optional) Caching based only on file id can be enabled with this example configuration
|
(Optional) Caching based only on file id can be enabled with this example configuration
|
||||||
```cfg
|
```cfg
|
||||||
# Will match '/-{id}' '/-{id}/' '/-{id}/name' but not '/-{id}/name/other'
|
# Will match '/-{id}' '/-{id}/' '/-{id}/name' but not '/-{id}/name/' or '/-{id}/name/other'
|
||||||
location ~ ^/-([a-zA-Z0-9]+)(?:/?$|/[^\/]+$)
|
location ~ ^/-([a-zA-Z0-9]+)(?:/?$|/[^/]+$)
|
||||||
# Other caching options are omitted here...
|
# Other caching options are omitted here...
|
||||||
proxy_cache_revalidate on;
|
proxy_cache_revalidate on;
|
||||||
proxy_cache_key "$host$1";
|
proxy_cache_key "$host$1";
|
||||||
|
|
Loading…
Reference in New Issue