Cho*_*per 5 caching nginx http-headers
现在我正在使用这个:
location ~* \.(js|css)$ { # |png|jpg|jpeg|gif|ico
expires max;
#log_not_found off; # what's this for?
}
Run Code Online (Sandbox Code Playgroud)
这就是我在萤火虫中看到的:

有效吗?如果我没有弄错的话,我的浏览器会再次请求该文件,并且 nginx 会回答“未修改”,因此我的浏览器会使用缓存。但我认为浏览器甚至不应该询问该文件,它已经知道它永远不会过期。
有什么想法吗?