Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
stop errors and forbidden caching
  • Loading branch information
ranguard committed Nov 19, 2016
1 parent bfa593b commit ed3e71c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cpanfile
Expand Up @@ -62,7 +62,7 @@ requires 'MooseX::StrictConstructor';
requires 'MooseX::Fastly::Role', '0.02';
requires 'PerlIO::gzip';
requires 'MetaCPAN::Moose';
requires 'MetaCPAN::Role', '0.05';
requires 'MetaCPAN::Role', '0.06';
requires 'MooseX::Types::Common::Numeric';
requires 'MooseX::Types::Common::String';
requires 'MooseX::Types::Moose';
Expand Down
17 changes: 12 additions & 5 deletions cpanfile.snapshot
Expand Up @@ -264,6 +264,13 @@ DISTRIBUTIONS
perl 5.006
strict 0
warnings 0
Carp-Always-0.13
pathname: F/FE/FERREIRA/Carp-Always-0.13.tar.gz
provides:
Carp::Always 0.13
requirements:
Carp 0
ExtUtils::MakeMaker 0
Carp-Assert-0.21
pathname: N/NE/NEILB/Carp-Assert-0.21.tar.gz
provides:
Expand Down Expand Up @@ -2592,12 +2599,12 @@ DISTRIBUTIONS
perl 5.006
strict 0
warnings 0
MetaCPAN-Role-0.05
pathname: L/LL/LLAP/MetaCPAN-Role-0.05.tar.gz
MetaCPAN-Role-0.06
pathname: L/LL/LLAP/MetaCPAN-Role-0.06.tar.gz
provides:
MetaCPAN::Role 0.05
MetaCPAN::Role::Fastly 0.05
MetaCPAN::Role::Fastly::Catalyst 0.05
MetaCPAN::Role 0.06
MetaCPAN::Role::Fastly 0.06
MetaCPAN::Role::Fastly::Catalyst 0.06
requirements:
Carp 0
CatalystX::Fastly::Role::Response 0.04
Expand Down
4 changes: 4 additions & 0 deletions lib/MetaCPAN/Web/Controller/Root.pm
Expand Up @@ -61,6 +61,8 @@ sub default : Path {

sub not_found : Private {
my ( $self, $c ) = @_;
$c->cdn_never_cache(1);

$c->stash(
{
template => 'not_found.html',
Expand All @@ -72,6 +74,8 @@ sub not_found : Private {

sub forbidden : Private {
my ( $self, $c ) = @_;
$c->cdn_never_cache(1);

$c->stash( { template => 'forbidden.html' } );
$c->response->status(403);
}
Expand Down

0 comments on commit ed3e71c

Please sign in to comment.