1
# vim:set ft= ts=4 sw=4 et fdm=marker:
3
use Test::Nginx::Socket;
5
#worker_connections(1014);
13
plan tests => repeat_each() * (blocks() * 3);
21
=== TEST 1: If-Modified-Since true
25
ngx.header.last_modified = "Thu, 10 May 2012 07:50:59 GMT"
32
If-Modified-Since: Thu, 10 May 2012 07:50:59 GMT
40
=== TEST 2: If-Modified-Since true
43
if_modified_since before;
45
ngx.header.last_modified = "Thu, 10 May 2012 07:50:48 GMT"
52
If-Modified-Since: Thu, 10 May 2012 07:50:59 GMT
60
=== TEST 3: If-Unmodified-Since false
63
#if_modified_since before;
65
ngx.header.last_modified = "Thu, 10 May 2012 07:50:48 GMT"
72
If-Unmodified-Since: Thu, 10 May 2012 07:50:47 GMT
73
--- response_body_like: 412 Precondition Failed
76
failed to send data through the output filters