Don't use cached value for snippet edit
What does this MR do and why?
Contributes to #425689 (closed)
Problem
Axios doesn't seem to support Etags correctly. It relies on
Cache-Control
and doesn't revalidate the snippet content with
If-None-Match
header.
Solution
Explicitly disable cache when fetching snippet blob to prevent displaying state data.
How to set up and validate locally
- Create a new snippet http://gdk.test:3000/-/snippets/new with content:
111
- Save the snippet
- Click Edit button and change the content to
222
- Save the snippet
- Quickly click Edit button again
- You should see
222
(in currentmaster
it will display111
instead)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin