File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ Features that sooner or later will be added to ` ngx_cache_purge ` :
2
+
3
+ * Add support for alternative in-location cache purges using specified
4
+ request method, with following configuration syntax:
5
+
6
+ location / {
7
+ proxy_pass http://127.0.0.1:8000;
8
+ proxy_cache tmpcache;
9
+ proxy_cache_key $uri$is_args$args;
10
+ proxy_cache_purge DELETE from 127.0.0.1;
11
+ }
12
+
13
+ This will allow for purges using:
14
+
15
+ curl -X DELETE http://example.com/logo.jpg
16
+
17
+ instead of:
18
+
19
+ curl http://example.com/purge/logo.jpg
20
+
21
+
22
+ Features that __ will not__ be added to ` ngx_cache_purge ` :
23
+
24
+ * Support for prefixed purges (` /purge/images/* ` ).
25
+ Reason: Impossible with current cache implementation.
26
+
27
+ * Support for wildcard/regex purges (` /purge/*.jpg ` ).
28
+ Reason: Impossible with current cache implementation.
You can’t perform that action at this time.
0 commit comments