You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+19
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ A module to order the querystring parameters in a variable to be used as cache k
5
5
6
6
Requests like /index.html?b=2&a=1&c=3, /index.html?b=2&c=3&a=1, /index.html?c=3&a=1&b=2, /index.html?c=3&b=2&a=1 will produce the same value for `$sorted_querystring_args`_'a=1&b=2&c=3'_.
7
7
8
+
It is also possible remove some undesired parameter defining its name with `sorted_querysting_filter_parameter`, like `sorted_querysting_filter_parameter b _ foo;` resulting in a `$sorted_querystring_args` as _'a=1&c=3'_
9
+
8
10
_This module is not distributed with the Nginx source. See [the installation instructions](#installation)._
9
11
10
12
@@ -46,6 +48,17 @@ An example:
46
48
47
49
access_log logs/nginx-http_access.log main;
48
50
51
+
location /filtered {
52
+
sorted_querysting_filter_parameter v _ time b;
53
+
54
+
proxy_set_header Host "static_files_server";
55
+
proxy_pass http://localhost:8081;
56
+
57
+
proxy_cache zone;
58
+
proxy_cache_key "$sorted_querystring_args";
59
+
proxy_cache_valid 200 1m;
60
+
}
61
+
49
62
location / {
50
63
proxy_pass http://localhost:8081;
51
64
@@ -71,6 +84,12 @@ Variables
71
84
***$sorted_querystring_args** - just list the IP considered as remote IP on the connection
72
85
73
86
87
+
Directives
88
+
----------
89
+
90
+
***sorted_querystring_filter_parameter** - list parameters to be filtered while using the `$sorted_querystring_args` variable.
0 commit comments