blib/lib/Mojolicious/Plugin/StaticCache.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 8 | 10 | 80.0 |
line | l | !l | condition |
---|---|---|---|
9 | 4 | 1 | $conf->{'even_in_dev'} ||= 0 |
10 | 2 | 3 | $conf->{'max_age'} ||= 2592000 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
11 | 2 | 3 | 0 | $conf->{'cache_control'} ||= "max-age=$conf->{'max_age'}, must-revalidate" |
15 | 0 | 10 | 5 | $app->mode eq 'production' or $conf->{'even_in_dev'} |