blob: f235de1b0cf31258cec3086a8094a209c1a64900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestRequest;
use Apache::TestUtil;
use Apache::TestConfig ();
plan tests => 3, need 'cache', need_cache_disk, need_min_apache_version('2.1.9');
Apache::TestRequest::module('mod_cache');
t_mkdir(Apache::Test::vars('serverroot') . '/conf/cacheroot/');
my $r = GET("/cache/");
ok t_cmp($r->code, 200, "non-cached call to index.html");
$r = GET("/cache/index.html");
ok t_cmp($r->code, 200, "call to cache index.html");
$r = GET("/cache/");
ok t_cmp($r->code, 200, "cached call to index.html");
|