Mercurial > hg > nginx-tests
comparison proxy_cache_vary.t @ 974:882267679006
Tests: simplified parallel modifications in tests.
Mail tests were simplified in c227348453db.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 12 Jul 2016 17:39:03 +0300 |
parents | e9064d691790 |
children | 196d33c2bb45 |
comparison
equal
deleted
inserted
replaced
973:7d7aef8b9f3a | 974:882267679006 |
---|---|
36 | 36 |
37 proxy_cache_path %%TESTDIR%%/cache keys_zone=one:1m inactive=5s; | 37 proxy_cache_path %%TESTDIR%%/cache keys_zone=one:1m inactive=5s; |
38 proxy_cache_key $uri; | 38 proxy_cache_key $uri; |
39 | 39 |
40 server { | 40 server { |
41 listen 127.0.0.1:%%PORT_0%%; | 41 listen 127.0.0.1:8080; |
42 server_name localhost; | 42 server_name localhost; |
43 | 43 |
44 add_header X-Cache-Status $upstream_cache_status; | 44 add_header X-Cache-Status $upstream_cache_status; |
45 | 45 |
46 location / { | 46 location / { |
47 proxy_pass http://127.0.0.1:%%PORT_1%%/; | 47 proxy_pass http://127.0.0.1:8081/; |
48 proxy_cache one; | 48 proxy_cache one; |
49 } | 49 } |
50 | 50 |
51 location /replace/ { | 51 location /replace/ { |
52 proxy_pass http://127.0.0.1:%%PORT_1%%/; | 52 proxy_pass http://127.0.0.1:8081/; |
53 proxy_cache one; | 53 proxy_cache one; |
54 } | 54 } |
55 | 55 |
56 location /revalidate/ { | 56 location /revalidate/ { |
57 proxy_pass http://127.0.0.1:%%PORT_1%%/; | 57 proxy_pass http://127.0.0.1:8081/; |
58 proxy_cache one; | 58 proxy_cache one; |
59 proxy_cache_revalidate on; | 59 proxy_cache_revalidate on; |
60 } | 60 } |
61 | 61 |
62 location /ignore/ { | 62 location /ignore/ { |
63 proxy_pass http://127.0.0.1:%%PORT_1%%/; | 63 proxy_pass http://127.0.0.1:8081/; |
64 proxy_cache one; | 64 proxy_cache one; |
65 proxy_ignore_headers Vary; | 65 proxy_ignore_headers Vary; |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 server { | 69 server { |
70 listen 127.0.0.1:%%PORT_1%%; | 70 listen 127.0.0.1:8081; |
71 server_name localhost; | 71 server_name localhost; |
72 | 72 |
73 gzip on; | 73 gzip on; |
74 gzip_min_length 0; | 74 gzip_min_length 0; |
75 gzip_http_version 1.0; | 75 gzip_http_version 1.0; |