proxy – caching Nginx too long

I'm trying to configure Nginx as a simple caching proxy for DarkSky so that I can stay under the limit of 1,000 a day. However, I have a problem in which he seems not to honor the proxy_cache_valid directive and it's been caching for a lot longer than what is being said to. Here is my configuration file:

worker_processes 1;

#error_log logs / error.log;
#error_log logs / error.log notice;
#error_log logs / error.log info;

#pid logs / nginx.pid;


events {
worker_connections 1024;
}


http {
include mime.types;
default_type application / octet-stream;

sendfile on;
keepalive_timeout 65;

proxy_cache_path / var / apicache keys_zone = apicache: 10m max_size = 1g inactive = 120m use_temp_path = off;
proxy_cache_valid any 1m;
proxy_cache_background_update off;
proxy_ignore_headers Cache-Control;

server {
listen to 8765;
listening       [::]8765;
darksky_server_name

location / api {
proxy_pass https://api.darksky.net/forecast/;
proxy_cache apicache;
}
}
}

I'm sure something is wrong, but I can not know what in my life. nginx -t is happy then this is not a syntax problem.

Here's what darksky's response headers look like:

HTTP / 2.0 200 OK
date: Thu, 28 Mar 2019 23:06:50 GMT
content type: application / json; character set = utf-8
x-authentication-time: 1ms
cache-control: max-age = 3600
expires on: Friday, March 29, 2019 00:06:50 +0000
x-forecast-api-calls: 104
x-content-type-options: nosniff
response time x: 37.548ms
vary: Accept-Encoding
content coding: gzip
X-Firefox-Spdy: h2

I do not see anything that could cause a problem, except perhaps for the cache control, but I disabled it in the Nginx configuration.