Ensure PHX proxy does not cache resources.ovirt.org
Out proxy is currently caching packages from resources.ovirt.org when jobs ask for then, since resources.ovirt.org is now in PHX, this is redundant and places unnecessary load on the proxy.
We need to configure the proxy to issue an HTTP permanent redirect (301) to all requests for file from resource.ovirt.org.
Thanks for the confirmation. As said, the only way we can do this is on client side. The client needs to support the no_proxy env var (it should if it supports http_proxy). There's nothing that can be done server side as any redirects will end up at the proxy itself causing infinite loops. Closing for now.
OK. I suppose we can CLOSE WONTFIX if we can't/unwilling to find any satisfactory solution.
Is this still relevant? As discussed, we can't force any redirects on server-side and the current setup does not negatively affect anything. I propose to close this request.
Ah, the issue with environment variables is that they are not universally respected by all tools. The purpose of this ticket is to check if squid can offer some sort of a safe catch-all fallback. I think it may be able to, because forward proxies are (as opposed to reverse proxies) AFAIK built-in to the HTTP protocol, and it has AFAIK some specialized keywords for handling them. One of which may be, "this proxy does not cache this resource, please go directly to...".
Of course setting the clients to not hit the proxy at all is more efficient, and we have various tickets to deal with that. But given the complex and unexpected nature of the clients we may see in use, we may never manage to properly setup 100% of the clients. This is why we need to make an effort and check if a server-based solution is possible at all.
This is not a squid option but an environment variable for clients that is processed when http_proxy is set on them.