Adds `.json` to the end of pipelines endpoint
All threads resolved!
All threads resolved!
Compare changes
Files
3@@ -139,7 +139,7 @@ export const fetchStages = ({ state, dispatch }) => {
The problem is explained here:
Why are we not using the
.json
in the url? But sending theapplication/json
header instead for the json response? This is most likely the reason it gets cached because we usehttps://gitlab.com/gitlab-org/gitlab-ce/pipelines/32543288
nothttps://gitlab.com/gitlab-org/gitlab-ce/pipelines/32543288.json
so when the user clicks the back button the browser sees it's the same url so sends over the Etag and caching takes effect. I think we just append.json
for the request of the pipelines it should solve this problem.
This MR adds .json
to the endpoint. We had this issue in the past, when we first started moving things into Vue and I forgot about it.
Closes #52472 (closed)