X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/273119605b7f33940a5ef9b1422eb1ff152d6764..ced486022308d18befcb1c83676c7d34ecc85f9d:/src/common/webdav.test.ts diff --git a/src/common/webdav.test.ts b/src/common/webdav.test.ts index 0a3b5170f6..1149c451e3 100644 --- a/src/common/webdav.test.ts +++ b/src/common/webdav.test.ts @@ -13,7 +13,7 @@ describe('WebDAV', () => { 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); }); @@ -26,7 +26,7 @@ describe('WebDAV', () => { 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); }); @@ -37,7 +37,7 @@ describe('WebDAV', () => { 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); }); @@ -50,7 +50,7 @@ describe('WebDAV', () => { 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); }); @@ -62,7 +62,7 @@ describe('WebDAV', () => { 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); }); @@ -74,7 +74,7 @@ describe('WebDAV', () => { 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); }); @@ -86,7 +86,7 @@ describe('WebDAV', () => { 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); }); @@ -98,7 +98,7 @@ describe('WebDAV', () => { 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); }); @@ -110,7 +110,7 @@ describe('WebDAV', () => { 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); }); @@ -122,7 +122,7 @@ describe('WebDAV', () => { 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); }); @@ -133,7 +133,7 @@ describe('WebDAV', () => { 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); }); });