Skip to content
Browse files

Add a Vary: Accept-Encoding header to all requests

As suggested by pingdom, not sure if it helps but probably doesn't hurt.
  • Loading branch information...
1 parent 683a40a commit f4cd2cc2be8da954907ba2a6a5ca7856d591c31b @afresh1 committed Oct 27, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 OpenBSDtracker
View
4 OpenBSDtracker
@@ -91,6 +91,10 @@ get '/detail/:hash' => sub {
$self->render( 'detail', layout => 'default' );
};
+app->hook(after_dispatch => sub {
+ my $tx = shift;
+ $tx->res->headers->header(Vary => 'Accept-Encoding');
+});
app->hook(after_static_dispatch => sub {
my $tx = shift;

0 comments on commit f4cd2cc

Please sign in to comment.
Something went wrong with that request. Please try again.