Skip to content

Ensure uploads are not cached without revalidation

What does this MR do?

changes Caching-Headers on /uploads controller to disable local agent caching without revalidation by adding must_revalidate and max_age=0.

Why was this MR needed?

When uploading Avatar sometimes the heuristics of local agent set the cached expiry so long that new avatar wasn't updated on page refresh. This MR ensures that Avatar and all other uploaded images will not Display without revalidating the cache.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #27936 (closed)

Merge request reports