Nginx始终从缓存

时间:2017-01-22 10:37:34

标签: caching nginx time

您好我试图配置nginx缓存系统。 这是我的配置文件

proxy_cache_valid 200 1m;
proxy_ignore_headers Set-Cookie;
add_header Cache-Control public;
add_header X-Cache-Status $upstream_cache_status;
proxy_cache my_cache;
proxy_pass http://myurl;

一切都很好。如果我查看标题请求:

X-cache-status : HIT;

但是,例如,如果我更改我的index.html并发出另一个请求,则会显示旧请求。

我想我错过了这个配置的东西。还有一些其他配置可以从nginx缓存中获得最佳性能吗? 有人能帮我吗? 感谢

0 个答案:

没有答案