Skip to content

Set Cache-Control max-age when ck param is present

Patrick Bajao requested to merge 384895-diffs-batch-http-caching-max-age into master

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.

Related to #384895 (closed)

Merge request reports