mirror of https://github.com/pelias/api.git
Peter Johnson
9 years ago
6 changed files with 6 additions and 6 deletions
@ -1,7 +1,7 @@ |
|||||||
|
|
||||||
// handle not found errors
|
// handle not found errors
|
||||||
function middleware(req, res) { |
function middleware(req, res) { |
||||||
res.header('Cache-Control','public,max-age=300'); // 5 minute cache
|
res.header('Cache-Control','public'); |
||||||
res.status(404).json({ error: 'not found: invalid path' }); |
res.status(404).json({ error: 'not found: invalid path' }); |
||||||
} |
} |
||||||
|
|
||||||
|
Loading…
Reference in new issue