Set Cache-Control max-age when ck param is present
What does this MR do and why?
To utilize client side caching further, we are adding support for ck
param (short for cache key). When that param is present, the Cache-Control
header will be set with a max-age
of 86400
which is equivalent to a day. This will tell the browser to cache the request for a day without the need to revalidate.
There's no effect right now as frontend will need to pass the ck
param for this to work.
This is behind the diffs_batch_cache_with_max_age
feature flag.
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.
Related to #384895 (closed)