The correct way to set Cache-control to non default value

Is there a way to set Cache control headers to the other value than 0? We’ve noticed users just looking around the jobs were generating very high numer of RPCs to Slurm. Just setting

  Header always unset Cache-Control
  Header unset Cache-Control
  Header always set Cache-Control "max-age=30, public"

in apache configuration helped a lot, but this will get overridden when the config is outogenerated. It would be nice to have a way to control that, since I guess many sites would prefer to deliver a little bit “outdated” information, but making sure a finger on F5 would result in slurmctld overload.

In 3.1 you can set custom_vhost_directives and custom_location_directives. I think you’d want the former to set these.

https://osc.github.io/ood-documentation/latest/reference/files/ood-portal-yml.html?highlight=custom_vhost