Re: Can't get a simple proxy to cache anything

2021-01-25 Thread Maxim Dounin
Hello! On Sun, Jan 24, 2021 at 12:56:35PM +, Phil Endecott wrote: > Maxim Dounin wrote: > > You haven't configured any proxy_cache_valid directives (see > > http://nginx.org/r/proxy_cache_valid for details), and the > > response doesn't have any cache validity headers, such as > > "Expires

Re: Can't get a simple proxy to cache anything

2021-01-24 Thread Phil Endecott
Maxim Dounin wrote: You haven't configured any proxy_cache_valid directives (see http://nginx.org/r/proxy_cache_valid for details), and the response doesn't have any cache validity headers, such as "Expires" or "Cache-Control: max-age=...". Thanks Maxim! It now seems to work. I guess I was e

Re: Can't get a simple proxy to cache anything

2021-01-23 Thread Maxim Dounin
Hello! On Fri, Jan 22, 2021 at 04:47:07PM +, Phil Endecott wrote: [...] > So the proxy has successfully retrieved the file - but it has not been > cached; > there is nothing saved in /var/cache/nginx. > > Looking in the nginx debug log, I see this: > > 2021/01/22 16:25:38 [debug] 18695#1

Can't get a simple proxy to cache anything

2021-01-22 Thread Phil Endecott
Dear Experts, I am trying to set up a simple limited caching proxy; I have got proxying to work, but I can't get it to cache. I'm a software developer, working from my home office. I have a fast home network, a slow connection to the internet, and fast cloud servers (e.g. AWS). I'd like to be