Skip to content

Commit

Permalink
Merge branch 'leo/fastly'
Browse files Browse the repository at this point in the history
  • Loading branch information
ranguard committed Nov 25, 2013
2 parents ff3ed2e + e22231d commit a03bac9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/MetaCPAN/Server/Controller/Root.pm
Expand Up @@ -60,9 +60,7 @@ sub end : ActionClass('RenderView') {

unless(
# Already have something set for fastly
$c->res->header('Surrogate-Control') ||
# We'll use Last-Modified for now
$c->res->header('Last-Modified')
$c->res->header('Surrogate-Control')
) {
# Make sure fastly doesn't cache anything by accident
$c->res->header('Surrogate-Control' => 0);
Expand Down

0 comments on commit a03bac9

Please sign in to comment.