Add no-cache for IE

This commit is contained in:
Typicode
2015-06-11 19:49:42 +02:00
parent ffcb04490d
commit 916788b99f
3 changed files with 42 additions and 11 deletions

View File

@ -350,4 +350,17 @@ describe('Server', function () {
assert(router.db.object)
})
})
describe('Responses', function () {
it('should have no cache headers (for IE)', function (done) {
request(server)
.get('/db')
.expect('Cache-Control', 'no-cache')
.expect('Pragma', 'no-cache')
.expect('Expires', '-1')
.end(done)
})
})
})