Mercurial > hg > nginx-tests
comparison not_modified_proxy.t @ 952:e9064d691790
Tests: converted tests to run in parallel.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 21 Jun 2016 16:39:13 +0300 |
parents | 3200d5b4ffa8 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
45 proxy_set_header If-Modified-Since ""; | 45 proxy_set_header If-Modified-Since ""; |
46 proxy_set_header If-Unmodified-Since ""; | 46 proxy_set_header If-Unmodified-Since ""; |
47 proxy_set_header If-None-Match ""; | 47 proxy_set_header If-None-Match ""; |
48 | 48 |
49 server { | 49 server { |
50 listen 127.0.0.1:8080; | 50 listen 127.0.0.1:%%PORT_0%%; |
51 server_name localhost; | 51 server_name localhost; |
52 | 52 |
53 location / { | 53 location / { |
54 } | 54 } |
55 | 55 |
56 location /etag { | 56 location /etag { |
57 add_header Last-Modified ""; | 57 add_header Last-Modified ""; |
58 } | 58 } |
59 | 59 |
60 location /proxy/ { | 60 location /proxy/ { |
61 proxy_pass http://127.0.0.1:8080/; | 61 proxy_pass http://127.0.0.1:%%PORT_0%%/; |
62 } | 62 } |
63 | 63 |
64 location /cache/ { | 64 location /cache/ { |
65 proxy_pass http://127.0.0.1:8080/; | 65 proxy_pass http://127.0.0.1:%%PORT_0%%/; |
66 proxy_cache one; | 66 proxy_cache one; |
67 proxy_cache_valid 200 1y; | 67 proxy_cache_valid 200 1y; |
68 } | 68 } |
69 } | 69 } |
70 } | 70 } |