From 607836331103cae089487e4d517f3de5c02ed1bc Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 28 Nov 2017 15:05:55 +0900 Subject: :v: --- src/web/app/common/scripts/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/web/app/common/scripts/api.ts') diff --git a/src/web/app/common/scripts/api.ts b/src/web/app/common/scripts/api.ts index e62447b0a0..2008e6f5ac 100644 --- a/src/web/app/common/scripts/api.ts +++ b/src/web/app/common/scripts/api.ts @@ -29,7 +29,8 @@ export default (i, endpoint, data = {}): Promise<{ [x: string]: any }> => { fetch(endpoint.indexOf('://') > -1 ? endpoint : `${_API_URL_}/${endpoint}`, { method: 'POST', body: JSON.stringify(data), - credentials: endpoint === 'signin' ? 'include' : 'omit' + credentials: endpoint === 'signin' ? 'include' : 'omit', + cache: 'no-cache' }).then(res => { if (--pending === 0) spinner.parentNode.removeChild(spinner); if (res.status === 200) { -- cgit v1.2.3-freya