Skip to content
Browse files

add cache header

  • Loading branch information
amio committed Jan 29, 2019
1 parent e1b6fd6 commit 07a1009ca39a29a24fca829796d9bff377a7b6cf
Showing with 2 additions and 0 deletions.
  1. +2 −0 index.js
@@ -14,6 +14,8 @@ function createHandler (routes) {

function _signpostHandler (signpost, req, res, depth) {
res.setHeader('Cache-Control', 'public, max-age=60, s-maxage=86400, stale-while-revalidate=604800, stale-if-error=604800')

if (depth > 10) {
res.writeHead(500, { 'Content-Type': 'text/plain' })
return res.end('TOO_MUCH_DEPTH')

1 comment on commit 07a1009


This comment has been minimized.

Copy link

now bot commented on 07a1009 Jan 29, 2019

Aliasing failed with the following error:

Error! The alias go is a deployment URL or it's in use by a different team.
Please sign in to comment.
You can’t perform that action at this time.