Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
now favs/login is via AJAX, only "Vary" on cookie in account
  • Loading branch information
ranguard committed May 27, 2015
1 parent feb33f8 commit e1b8a29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/MetaCPAN/Web/Controller/Account.pm
Expand Up @@ -9,6 +9,11 @@ BEGIN { extends 'MetaCPAN::Web::Controller' }

sub auto : Private {
my ( $self, $c ) = @_;

# Keep everything here as specific to the user
# this is for proxies
$c->res->header( Vary => 'Cookie' );

unless ( $c->user_exists ) {
$c->forward('/forbidden');
}
Expand Down
2 changes: 0 additions & 2 deletions lib/MetaCPAN/Web/Controller/Root.pm
Expand Up @@ -103,8 +103,6 @@ sub end : ActionClass('RenderView') {

$c->stash->{site_alert_message} = $c->config->{site_alert_message};

$c->res->header( Vary => 'Cookie' );

$c->fastly_magic();

}
Expand Down

0 comments on commit e1b8a29

Please sign in to comment.