On Sun, Jan 19, 2020 at 4:34 PM Roy Smith roy@panix.com wrote:
Is there a way to set the cache-control header for files served by tools-static.wmflabs.org?
Not easily no, there is no per-directory control of tools-static. We do have some customizations in the nginx config. These can be seen at https://phabricator.wikimedia.org/source/operations-puppet/browse/production/modules/profile/templates/toolforge/static-server.conf.erb.
If you have a specific need, you may create a Phabricator task describing it. This is not a process that will scale well to all of the tools with access to publish on tools-static, so if there is a lot of demand for customizations we may need to find another way to provide them.
Bryan