Florian Schulze
Florian Schulze
I think you can use [``proxy_ignore_headers``](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ignore_headers) instead of recursive proxy. You might want to add an ``if`` for ``/\+simple/?`` locations to enable caching. Have you tested ``application/vnd.pypi.simple.v1+json`` from newer pip?...
The key for caching without recursive proxy seems to be: ``proxy_cache_valid 200 10m;`` The current output I have for ``devpi-genconfig``: ```nginx # adjust to your system and liking proxy_cache_path /var/cache/nginx...
It is better to ``set`` it in the location, see https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ and https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ I also renamed the variable and switched to using ``map``. You could move the ``if``s to the...
Can you try with my [temp branch](https://github.com/fschulze/devpi/tree/temp)?
You could force one by editing ``/etc/hosts`` to point pypi.org to 127.0.0.1, or you could change the ``mirror_url`` to example.com.
> * When I set up the `netcat` listener and used a package that was in the mirrored index, it would return the page with `Pragma: no-cache`, which I think...
Not out of the box. We don't keep any record of last downloaded packages because we keep the whole metadata history for replication and storing each access would blow up...
I tried to reproduce this and I only got the same behaviour if I didn't wait for the test.pypi.org cache expiry. When I made sure that test.pypi.org simple page actually...
Consistently reproducing it would be very helpful. Keep the caching in mind. It is entirely possible that you can see the change in the browser or with curl, but the...
Can you try it with the following development release? https://m.devpi.net/fschulze/dev/devpi-server/6.6.0.dev3 https://m.devpi.net/fschulze/dev/+f/014/16932edab0b1c/devpi_server-6.6.0.dev3-py3-none-any.whl