Skip to content

Commit 304a251

Browse files
committed
Add cache control headers to perl server
1 parent d90d36b commit 304a251

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
any [qw(GET POST)] => '/api/comments' => sub {
2020
my $self = shift;
2121
my $comments = decode_json (do { local(@ARGV,$/) = 'comments.json';<> });
22+
$self->res->headers->cache_control('no-cache');
2223

2324
if ($self->req->method eq 'POST')
2425
{

0 commit comments

Comments
 (0)