mirror of https://github.com/pelias/api.git
Stephen Hess
9 years ago
22 changed files with 31 additions and 59 deletions
@ -1,7 +1,7 @@
|
||||
|
||||
// handle not found errors
|
||||
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' }); |
||||
} |
||||
|
||||
|
Loading…
Reference in new issue