const request = await promise;
expect(open).toHaveBeenCalledWith('PROPFIND', 'http://foo.com/foo');
expect(setRequestHeader).toHaveBeenCalledWith('Authorization', 'Basic');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
const request = await promise;
expect(open).toHaveBeenCalledWith('PROPFIND', 'http://foo.com/foo');
expect(setRequestHeader).toHaveBeenCalledWith('Authorization', 'Basic');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
load();
const request = await promise;
expect(open).toHaveBeenCalledWith('PROPFIND', 'foo');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
const request = await promise;
expect(open).toHaveBeenCalledWith('PUT', 'foo');
expect(send).toHaveBeenCalledWith('Test data');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
const request = await promise;
expect(open).toHaveBeenCalledWith('COPY', 'http://base/foo');
expect(setRequestHeader).toHaveBeenCalledWith('Destination', 'http://base/foo-copy');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
const request = await promise;
expect(open).toHaveBeenCalledWith('COPY', 'http://base/foo');
expect(setRequestHeader).toHaveBeenCalledWith('Destination', 'http://base/foo-copy');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
const request = await promise;
expect(open).toHaveBeenCalledWith('COPY', 'http://base/foo');
expect(setRequestHeader).toHaveBeenCalledWith('Destination', 'http://base/foo-copy');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
const request = await promise;
expect(open).toHaveBeenCalledWith('MOVE', 'http://base/foo');
expect(setRequestHeader).toHaveBeenCalledWith('Destination', 'http://base/foo-moved');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
const request = await promise;
expect(open).toHaveBeenCalledWith('MOVE', 'http://base/foo');
expect(setRequestHeader).toHaveBeenCalledWith('Destination', 'http://base/foo-moved');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
const request = await promise;
expect(open).toHaveBeenCalledWith('MOVE', 'http://base/foo');
expect(setRequestHeader).toHaveBeenCalledWith('Destination', 'http://base/foo-moved');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
load();
const request = await promise;
expect(open).toHaveBeenCalledWith('DELETE', 'foo');
- expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'must-revalidate');
+ expect(setRequestHeader).toHaveBeenCalledWith('Cache-Control', 'no-cache');
expect(request).toBeInstanceOf(XMLHttpRequest);
});
});