Mercurial > hg > nginx-tests
comparison proxy_cache_use_stale.t @ 1210:3ca5b0081bc6
Tests: proxy_cache_use_stale.t adjusted.
Extended stale-while-revalidate in a cached response to ensure
it's not yet ceased when revalidating in the background.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 23 Aug 2017 13:48:32 +0300 |
parents | 0352ed25af20 |
children | a3d23d16712d |
comparison
equal
deleted
inserted
replaced
1209:0d9df274e3a3 | 1210:3ca5b0081bc6 |
---|---|
148 | 148 |
149 get('/tt.html', 'max-age=1, stale-if-error=2'); | 149 get('/tt.html', 'max-age=1, stale-if-error=2'); |
150 get('/t3.html', 'max-age=1, stale-while-revalidate=2'); | 150 get('/t3.html', 'max-age=1, stale-while-revalidate=2'); |
151 get('/t4.html', 'max-age=1, stale-while-revalidate=2'); | 151 get('/t4.html', 'max-age=1, stale-while-revalidate=2'); |
152 get('/t5.html', 'max-age=1, stale-while-revalidate=2'); | 152 get('/t5.html', 'max-age=1, stale-while-revalidate=2'); |
153 get('/t6.html', 'max-age=1, stale-while-revalidate=2'); | 153 get('/t6.html', 'max-age=1, stale-while-revalidate=4'); |
154 get('/t7.html', 'max-age=1, stale-while-revalidate=10'); | 154 get('/t7.html', 'max-age=1, stale-while-revalidate=10'); |
155 http_get('/ssi.html'); | 155 http_get('/ssi.html'); |
156 get('/updating/t.html', 'max-age=1'); | 156 get('/updating/t.html', 'max-age=1'); |
157 get('/updating/t2.html', 'max-age=1, stale-while-revalidate=2'); | 157 get('/updating/t2.html', 'max-age=1, stale-while-revalidate=2'); |
158 get('/t8.html', 'stale-while-revalidate=10'); | 158 get('/t8.html', 'stale-while-revalidate=10'); |