Mercurial > hg > nginx-tests
annotate proxy_cache_vary.t @ 1606:e4e0695552ed
Tests: fixed stream_proxy_ssl_conf_command.t.
The stream_proxy_ssl_conf_command.t test used stream return module
to return the response. Since this ignores actual request, but the
perl test code used http_get(). This might result in the request being
sent after the response is returned and the connection closed by the server,
resulting in RST being generated and no response seen by the client at all.
Fix is to use "stream(...)->read()" instead of http_get(), so
no request is sent at all, eliminating possibility of RST being
generated.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 10 Nov 2020 05:03:29 +0300 |
parents | e682d5ad3861 |
children | feb754918372 |
rev | line source |
---|---|
471 | 1 #!/usr/bin/perl |
2 | |
3 # (C) Maxim Dounin | |
4 | |
5 # Tests for http proxy cache, the Vary header. | |
6 | |
7 ############################################################################### | |
8 | |
9 use warnings; | |
10 use strict; | |
11 | |
12 use Test::More; | |
13 | |
14 BEGIN { use FindBin; chdir($FindBin::Bin); } | |
15 | |
16 use lib 'lib'; | |
17 use Test::Nginx; | |
18 | |
19 ############################################################################### | |
20 | |
21 select STDERR; $| = 1; | |
22 select STDOUT; $| = 1; | |
23 | |
1020
196d33c2bb45
Tests: removed TODO and try_run() checks for legacy versions.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
974
diff
changeset
|
24 my $t = Test::Nginx->new()->has(qw/http proxy cache gzip rewrite/) |
1590
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
25 ->plan(49)->write_file_expand('nginx.conf', <<'EOF'); |
471 | 26 |
27 %%TEST_GLOBALS%% | |
28 | |
29 daemon off; | |
30 | |
31 events { | |
32 } | |
33 | |
34 http { | |
35 %%TEST_GLOBALS_HTTP%% | |
36 | |
37 proxy_cache_path %%TESTDIR%%/cache keys_zone=one:1m inactive=5s; | |
38 proxy_cache_key $uri; | |
39 | |
40 server { | |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
41 listen 127.0.0.1:8080; |
471 | 42 server_name localhost; |
43 | |
44 add_header X-Cache-Status $upstream_cache_status; | |
45 | |
46 location / { | |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
47 proxy_pass http://127.0.0.1:8081/; |
471 | 48 proxy_cache one; |
49 } | |
50 | |
51 location /replace/ { | |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
52 proxy_pass http://127.0.0.1:8081/; |
471 | 53 proxy_cache one; |
54 } | |
55 | |
56 location /revalidate/ { | |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
57 proxy_pass http://127.0.0.1:8081/; |
471 | 58 proxy_cache one; |
59 proxy_cache_revalidate on; | |
60 } | |
61 | |
62 location /ignore/ { | |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
63 proxy_pass http://127.0.0.1:8081/; |
471 | 64 proxy_cache one; |
65 proxy_ignore_headers Vary; | |
66 } | |
67 } | |
68 | |
69 server { | |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
70 listen 127.0.0.1:8081; |
471 | 71 server_name localhost; |
72 | |
73 gzip on; | |
74 gzip_min_length 0; | |
75 gzip_http_version 1.0; | |
76 gzip_vary on; | |
77 | |
78 expires 2s; | |
79 | |
80 location / { | |
81 if ($args = "novary") { | |
82 return 200 "the only variant\n"; | |
83 } | |
1590
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
84 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
85 add_header Vary $arg_vary; |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
86 add_header Xtra $arg_xtra; |
471 | 87 } |
88 | |
89 location /asterisk { | |
90 gzip off; | |
91 add_header Vary "*"; | |
92 } | |
93 | |
94 location /complex { | |
95 gzip off; | |
96 add_header Vary ",, Accept-encoding , ,"; | |
97 } | |
98 } | |
99 } | |
100 | |
101 EOF | |
102 | |
103 $t->write_file('index.html', 'SEE-THIS'); | |
104 $t->write_file('asterisk', 'SEE-THIS'); | |
105 $t->write_file('complex', 'SEE-THIS'); | |
106 | |
568
907e89fba9c3
Tests: removed TODO and try_run() checks for legacy versions.
Sergey Kandaurov <pluknet@nginx.com>
parents:
507
diff
changeset
|
107 $t->run(); |
471 | 108 |
109 ############################################################################### | |
110 | |
111 like(get('/', 'gzip'), qr/MISS/ms, 'first request'); | |
112 like(get('/', 'gzip'), qr/HIT/ms, 'vary match cached'); | |
113 like(get('/', 'deflate'), qr/MISS/ms, 'vary mismatch'); | |
114 like(get('/', 'deflate'), qr/HIT/ms, 'vary mismatch cached'); | |
115 like(get('/', 'foo'), qr/MISS/ms, 'vary mismatch 2'); | |
116 like(get('/', 'foo'), qr/HIT/ms, 'vary mismatch 2 cached'); | |
117 like(get('/', 'gzip'), qr/HIT/ms, 'multiple representations cached'); | |
118 | |
119 SKIP: { | |
120 skip 'long tests', 6 unless $ENV{TEST_NGINX_UNSAFE}; | |
121 | |
122 # make sure all variants are properly expire | |
123 # and removed after inactive timeout | |
124 | |
125 sleep(3); | |
126 | |
127 like(get('/', 'gzip'), qr/EXPIRED/ms, 'first expired'); | |
128 like(get('/', 'deflate'), qr/EXPIRED/ms, 'second variant expired'); | |
129 | |
130 like(get('/', 'gzip'), qr/HIT/ms, 'first cached after expire'); | |
131 like(get('/', 'deflate'), qr/HIT/ms, 'second cached after expire'); | |
132 | |
133 sleep(12); | |
134 | |
135 like(get('/', 'gzip'), qr/MISS/ms, 'first inactive removed'); | |
136 like(get('/', 'deflate'), qr/MISS/ms, 'second variant removed'); | |
137 | |
138 } | |
139 | |
140 SKIP: { | |
141 skip 'long tests', 6 unless $ENV{TEST_NGINX_UNSAFE}; | |
142 | |
143 # check if the variant which was loaded first will be properly | |
144 # removed if it's not requested (but another variant is requested | |
145 # at the same time) | |
146 | |
147 sleep(3); | |
148 like(get('/', 'deflate'), qr/EXPIRED/ms, 'bump1'); | |
149 sleep(3); | |
150 like(get('/', 'deflate'), qr/EXPIRED/ms, 'bump2'); | |
151 sleep(3); | |
152 like(get('/', 'deflate'), qr/EXPIRED/ms, 'bump3'); | |
153 sleep(3); | |
154 like(get('/', 'deflate'), qr/EXPIRED/ms, 'bump4'); | |
155 | |
156 TODO: { | |
157 local $TODO = 'not yet'; | |
158 | |
476
4e335141aa4b
Tests: fix head() remnants in Vary tests.
Maxim Dounin <mdounin@mdounin.ru>
parents:
471
diff
changeset
|
159 like(get('/', 'gzip'), qr/MISS/ms, 'first not bumped by second requests'); |
471 | 160 |
161 } | |
162 | |
476
4e335141aa4b
Tests: fix head() remnants in Vary tests.
Maxim Dounin <mdounin@mdounin.ru>
parents:
471
diff
changeset
|
163 like(get('/', 'deflate'), qr/HIT/ms, 'second variant cached'); |
471 | 164 |
165 } | |
166 | |
167 # if a response without Vary is returned to replace previously returned | |
168 # responses with Vary, make sure it is then used in all cases | |
169 | |
170 like(get('/replace/', 'gzip'), qr/MISS/, 'replace first'); | |
171 like(get('/replace/', 'deflate'), qr/MISS/, 'replace second'); | |
172 | |
173 sleep(3); | |
174 | |
175 like(get('/replace/?novary', 'deflate'), qr/EXPIRED/, 'replace novary'); | |
176 like(get('/replace/?zztest', 'gzip'), qr/HIT/, 'all replaced'); | |
177 | |
178 # make sure revalidation of variants works fine | |
179 | |
180 like(get('/revalidate/', 'gzip'), qr/MISS/, 'revalidate first'); | |
181 like(get('/revalidate/', 'deflate'), qr/MISS/, 'revalidate second'); | |
182 | |
183 sleep(3); | |
184 | |
185 like(get('/revalidate/', 'gzip'), qr/REVALIDATED/, 'revalidated first'); | |
186 like(get('/revalidate/', 'deflate'), qr/REVALIDATED/, 'revalidated second'); | |
187 like(get('/revalidate/', 'gzip'), qr/HIT/, 'revalidate first after'); | |
188 like(get('/revalidate/', 'deflate'), qr/HIT/, 'revalidate second after'); | |
189 | |
190 # if the Vary header is ignored, cached version can be returned | |
191 # regardless of request headers | |
192 | |
193 like(get('/ignore/', 'gzip'), qr/MISS/ms, 'another request'); | |
194 like(get('/ignore/', 'deflate'), qr/HIT/ms, 'vary ignored'); | |
195 | |
196 # check parsing of Vary with multiple headers listed | |
197 | |
198 like(get('/complex', 'gzip'), qr/MISS/ms, 'vary complex first'); | |
199 like(get('/complex', 'deflate'), qr/MISS/ms, 'vary complex second'); | |
200 like(get('/complex', 'gzip'), qr/HIT/ms, 'vary complex first cached'); | |
201 like(get('/complex', 'deflate'), qr/HIT/ms, 'vary complex second cached'); | |
202 | |
203 # From RFC 7231, "7.1.4. Vary", | |
204 # http://tools.ietf.org/html/rfc7231#section-7.1.4: | |
205 # | |
206 # A Vary field value of "*" signals that anything about the request | |
207 # might play a role in selecting the response representation, possibly | |
208 # including elements outside the message syntax (e.g., the client's | |
209 # network address). A recipient will not be able to determine whether | |
210 # this response is appropriate for a later request without forwarding | |
211 # the request to the origin server. | |
212 # | |
213 # In theory, If-None-Match can be used to check if the representation | |
214 # present in the cache is appropriate. This seems to be only possible | |
215 # with strong entity tags though, as representation with different | |
216 # content condings may share the same weak entity tag. | |
217 | |
218 like(get('/asterisk', 'gzip'), qr/MISS/ms, 'vary asterisk first'); | |
219 like(get('/asterisk', 'gzip'), qr/MISS/ms, 'vary asterisk second'); | |
220 | |
221 # From RFC 7234, "4.1. Calculating Secondary Keys with Vary", | |
222 # http://tools.ietf.org/html/rfc7234#section-4.1: | |
223 # | |
224 # The selecting header fields from two requests are defined to match if | |
225 # and only if those in the first request can be transformed to those in | |
226 # the second request by applying any of the following: | |
227 # | |
228 # o adding or removing whitespace, where allowed in the header field's | |
229 # syntax | |
507 | 230 # |
471 | 231 # o combining multiple header fields with the same field name (see |
232 # Section 3.2 of [RFC7230]) | |
507 | 233 # |
471 | 234 # o normalizing both header field values in a way that is known to |
235 # have identical semantics, according to the header field's | |
236 # specification (e.g., reordering field values when order is not | |
237 # significant; case-normalization, where values are defined to be | |
238 # case-insensitive) | |
489
3036e3af0e08
Tests: more Vary normalization tests.
Maxim Dounin <mdounin@mdounin.ru>
parents:
481
diff
changeset
|
239 # |
3036e3af0e08
Tests: more Vary normalization tests.
Maxim Dounin <mdounin@mdounin.ru>
parents:
481
diff
changeset
|
240 # Only whitespace normalization is currently implemented. |
471 | 241 |
242 like(get('/', 'foo, bar'), qr/MISS/ms, 'normalize first'); | |
481
7e823c8f7d31
Tests: adjusted TODOs for cache Vary support committed in 1.7.7.
Sergey Kandaurov <pluknet@nginx.com>
parents:
478
diff
changeset
|
243 like(get('/', 'foo,bar'), qr/HIT/ms, 'normalize whitespace'); |
7e823c8f7d31
Tests: adjusted TODOs for cache Vary support committed in 1.7.7.
Sergey Kandaurov <pluknet@nginx.com>
parents:
478
diff
changeset
|
244 like(get('/', 'foo,, ,bar , '), qr/HIT/ms, 'normalize empty'); |
489
3036e3af0e08
Tests: more Vary normalization tests.
Maxim Dounin <mdounin@mdounin.ru>
parents:
481
diff
changeset
|
245 like(get('/', 'foobar'), qr/MISS/ms, 'normalize no whitespace mismatch'); |
471 | 246 |
247 TODO: { | |
248 local $TODO = 'not yet'; | |
249 | |
250 like(get('/', 'bar,foo'), qr/HIT/ms, 'normalize order'); | |
251 | |
252 } | |
253 | |
1590
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
254 # keep c->body_start when Vary changes (ticket #2029) |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
255 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
256 # before 1.19.3, this prevented updating c->body_start of a main key |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
257 # triggering "cache file .. has too long header" critical errors |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
258 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
259 like(get1('/?vary=x,y', 'x:1'), qr/MISS/, 'change first'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
260 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
261 TODO: { |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
262 local $TODO = 'not yet' unless $t->has_version('1.19.3'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
263 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
264 like(get1('/?vary=x,y', 'x:1'), qr/HIT/, 'change first cached'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
265 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
266 } |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
267 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
268 like(get1('/?vary=x,y&xtra=1', 'x:2'), qr/MISS/, 'change second'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
269 like(get1('/?vary=x,y&xtra=1', 'x:2'), qr/HIT/, 'change second cached'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
270 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
271 $t->stop(); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
272 $t->run(); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
273 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
274 # reset c->body_start when loading a secondary key variant |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
275 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
276 # before 1.19.3, it was loaded using a variant stored with a main key |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
277 # triggering "cache file .. has too long header" critical errors |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
278 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
279 like(get1('/?vary=x,y', 'x:1'), qr/HIT/, 'cold first'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
280 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
281 TODO: { |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
282 local $TODO = 'not yet' unless $t->has_version('1.19.3'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
283 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
284 like(get1('/?vary=x,y&xtra=1', 'x:2'), qr/HIT/, 'cold second'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
285 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
286 } |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
287 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
288 $t->stop(); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
289 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
290 TODO: { |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
291 local $TODO = 'not yet' unless $t->has_version('1.19.3'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
292 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
293 like(`grep -F '[crit]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no crit'); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
294 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
295 } |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
296 |
471 | 297 ############################################################################### |
298 | |
299 sub get { | |
300 my ($url, $extra) = @_; | |
301 return http(<<EOF); | |
302 GET $url HTTP/1.1 | |
303 Host: localhost | |
304 Connection: close | |
305 Accept-Encoding: $extra | |
306 | |
307 EOF | |
308 } | |
309 | |
1590
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
310 sub get1 { |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
311 my ($url, $extra) = @_; |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
312 return http(<<EOF); |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
313 GET $url HTTP/1.1 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
314 Host: localhost |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
315 Connection: close |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
316 $extra |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
317 |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
318 EOF |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
319 } |
e682d5ad3861
Tests: added two cache Vary cases fixed in 1.19.3.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
320 |
471 | 321 ############################################################################### |