Re: caching: Expires takes precedence over max-age

2013-08-02 Thread Maxim Dounin
Hello! On Thu, Aug 01, 2013 at 03:59:45AM -0400, hippo wrote: > Hello, I have a trouble with nginx caching pages it shouldn't cache. I have > uwsgi_cache enabled: > > uwsgi_cache_path /tmp/cache levels=1:2 keys_zone=django:1m; > location /test { > uwsgi_pass unix:/tmp/uwsgi.sock; > uwsgi

caching: Expires takes precedence over max-age

2013-08-01 Thread hippo
Hello, I have a trouble with nginx caching pages it shouldn't cache. I have uwsgi_cache enabled: uwsgi_cache_path /tmp/cache levels=1:2 keys_zone=django:1m; location /test { uwsgi_pass unix:/tmp/uwsgi.sock; uwsgi_cache django; } nginx caches responses that have Expires header set in the f