Skip to content
Snippets Groups Projects

Disable cache in workflow polling

Merged Erwan Rouchet requested to merge no-cache-workflow into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -47,7 +47,7 @@ export const actions = {
get ({ commit }, payload) {
let url = payload.url || '/imports/' + payload.id + '/'
commit('use_error', null, { root: true })
return axios.get(url).then(resp => {
return axios.get(url, { headers: {'Cache-Control': 'no-cache'} }).then(resp => {
commit('set', resp.data)
}).catch(err => {
commit('set', null)
@@ -57,7 +57,7 @@ export const actions = {
getWorkflow ({ commit }, payload) {
commit('use_error', null, { root: true })
return axios.get(payload.url).then(resp => {
return axios.get(payload.url, { headers: {'Cache-Control': 'no-cache'} }).then(resp => {
commit('setWorkflow', resp.data)
}).catch(err => {
commit('setWorkflow', null)
@@ -67,7 +67,7 @@ export const actions = {
getTask ({ commit }, payload) {
commit('use_error', null, { root: true })
return axios.get(payload.url).catch(err => {
return axios.get(payload.url, { headers: {'Cache-Control': 'no-cache'} }).catch(err => {
commit('use_error', err, { root: true })
})
},
Loading