Strict mode (ForceManaged: 1) does not work if repository is redirecting to CDN with 301 code. Feature request: make this possible.
I need strict mode to comply to PCI DSS requirements: allow using only explicitly listed repositories.
Some apt repositories, like packages.gitlab.com, use CND to distribute content. 301 code is returned pointing to some CDN host, for example:
https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/xenial/Release goes to
Every time they use a new host, so I can not write it to Remap directive.
Adding option to cache content from 301 redirects, returning it to client as original file, not showing redirection, would solve this problem.
Edited by Pavel Selivanov