mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 14:20:48 +00:00
added no-cache endpoint
This commit is contained in:
parent
4955fb373b
commit
7aaf08da48
1 changed files with 4 additions and 0 deletions
|
@ -324,6 +324,10 @@ module.exports = class Router
|
|||
headers: req.headers
|
||||
})
|
||||
|
||||
webRouter.get "/no-cache", (req, res, next)->
|
||||
res.header("Cache-Control", "max-age=0")
|
||||
res.sendStatus(404)
|
||||
|
||||
webRouter.get '/oops-express', (req, res, next) -> next(new Error("Test error"))
|
||||
webRouter.get '/oops-internal', (req, res, next) -> throw new Error("Test error")
|
||||
webRouter.get '/oops-mongo', (req, res, next) ->
|
||||
|
|
Loading…
Reference in a new issue