Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Frontend
Merge requests
!107
Disable cache in workflow polling
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Disable cache in workflow polling
no-cache-workflow
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Erwan Rouchet
requested to merge
no-cache-workflow
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Requires
backend!254 (merged)
Edited
5 years ago
by
Erwan Rouchet
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3c1f4cc4
1 commit,
5 years ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
js/store/imports.js
+
3
−
3
Options
@@ -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