Re: Problem with uwsgi_no_cache

2015-08-15 Thread daveyfx
Thank you, Francis. For anyone wondering what my corrected configuration looks like, here it is. All the JSON content returned by the upstream is now ignored and only caching HTML content as desired. ## cache zone config ## uwsgi_cache_path /var/cache/nginx/files keys_zone=www:10m inactive=10m;

Re: Problem with uwsgi_no_cache

2015-08-13 Thread Francis Daly
On Thu, Aug 13, 2015 at 12:06:50AM -0400, daveyfx wrote: Hi there, > I'm attempting to exclude application/json data from storing in nginx's > cache. All other content types are OK to cache. I thought that the below > config would work for me, but nginx is still caching everything that is > pro

Problem with uwsgi_no_cache

2015-08-12 Thread daveyfx
Hi all - I'm attempting to exclude application/json data from storing in nginx's cache. All other content types are OK to cache. I thought that the below config would work for me, but nginx is still caching everything that is proxying. What am I doing wrong? ## in http block ## map $http_c