mirror of
https://github.com/typicode/json-server.git
synced 2025-08-02 19:52:20 +08:00
Add no-cache for IE
This commit is contained in:
@ -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)
|
||||
})
|
||||
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user