Skip to content

Commit

Permalink
Add cache control headers to perl server
Browse files Browse the repository at this point in the history
  • Loading branch information
zpao committed Jan 26, 2016
1 parent d90d36b commit 304a251
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
any [qw(GET POST)] => '/api/comments' => sub {
my $self = shift;
my $comments = decode_json (do { local(@ARGV,$/) = 'comments.json';<> });
$self->res->headers->cache_control('no-cache');

if ($self->req->method eq 'POST')
{
Expand Down

0 comments on commit 304a251

Please sign in to comment.