mirror of
https://github.com/avwo/whistle.git
synced 2026-10-18 22:51:32 +08:00
15 lines
429 B
JavaScript
15 lines
429 B
JavaScript
var util = require('../util.test');
|
|
|
|
module.exports = function() {
|
|
util.request('http://cache.test.whistlejs.com/index.html', function(res, data) {
|
|
res.headers.should.have.property('cache-control', 'max-age=60000');
|
|
});
|
|
|
|
util.request({
|
|
method: 'post',
|
|
url: 'https://cache.test.whistlejs.com/index.html'
|
|
}, function(res, data) {
|
|
res.headers.should.have.property('cache-control', 'max-age=60000');
|
|
});
|
|
};
|