ID Cache location fix pt2
This commit is contained in:
parent
a1bc2cdbcf
commit
d16f1b1cf3
|
@ -36,9 +36,10 @@ server {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
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
|
||||||
location ~ ^/-([a-zA-Z0-9]+) {
|
# Will match '/-{id}' '/-{id}/' '/-{id}/name' but not '/-{id}/name/other'
|
||||||
|
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