Op 29-05-13 11:43, Donald Stufft schreef:
On May 29, 2013, at 5:39 AM, Donald Stufft wrote:
The cache timeout is an hour unless modifications are made to the
package which triggers a cache invalidation.
I bet there is a missing Vary for the encoding. I'll check and get
back to you.
There was indeed no Vary headers, I've turned them on and purged the
cache. Please let me know if this behavior doesn't go away.
It still works on and off for me.
$ curl http://pypi.python.org/simple/pep8/
<html><head><title>Links for pep8</title><meta name="api-version"
value="2" /></head><body><h1>Links for pep8</h1><a
href="../../packages/source/p/pep8/pep8-0.4.2.tar.gz#md5=da8562ef0b18ae9ced210cff742a2d1b"
rel="internal">pep8-0.4.2.tar.gz</a><br/>
...
</body></html>
Try the same url again:
$ curl http://pypi.python.org/simple/pep8/
??Q??W[??H
...
So sometimes it works fine and sometimes it is gzipped .
Indeed:
$ for i in $(seq 5); do curl -o $i http://pypi.python.org/simple/pep8/;
sleep 2; done
...
$ ls -l $(seq 5)
-rw-r--r-- 1 mauritsvanrees staff 829 May 29 14:05 1
-rw-r--r-- 1 mauritsvanrees staff 3232 May 29 14:05 2
-rw-r--r-- 1 mauritsvanrees staff 3232 May 29 14:05 3
-rw-r--r-- 1 mauritsvanrees staff 829 May 29 14:05 4
-rw-r--r-- 1 mauritsvanrees staff 3232 May 29 14:05 5
--
Maurits van Rees: http://maurits.vanrees.org/
Zest Software: http://zestsoftware.nl
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig