sub max_age { 60 }
sub variants {
+ return [] unless exists $templates{$_[0]};
[ map { [ $_, 1, 'text/html', undef, undef, $_, undef ]} keys $templates{$_[0]} ]
}
[200, ['Content-Type' => 'text/css', 'Cache-Control' => 'public, max-age=604800', 'X-Forever' => 1], [minify $css] ]
}
-sub variants{ [[css => 1, 'text/css', undef, undef, undef, undef]] }
-
1
[200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=604800', 'X-Forever' => 1], [minify $js] ]
}
-sub variants{ [[js => 1, 'application/javascript', undef, undef, undef, undef]] }
-
1
reply 'Password changed successfully';
}
-sub variants{ [[reply => 1, undef, undef, undef, undef, undef]] }
-
1
reply 'Registered successfully';
}
-sub variants{ [[reply => 1, undef, undef, undef, undef, undef]] }
-
1
[200, ['Content-Type' => CONTENT_TYPES->{$ext}, 'Cache-Control' => 'max-age=604800', 'X-Forever' => 1], [job_inmeta($job)->{files}{prog}{content}] ]
}
-sub variants{ [[file => 1, undef, undef, undef, undef, undef]] }
-
1
[303, [Location => $r->path =~ s,/pb/\w+/submit$,/log/,r], ['']]
}
-sub variants{ [[reply => 1, undef, undef, undef, undef, undef]] }
-
1