debian 6 nginx 0.7.67 (apt installation) is used as a development environment. It is found that after modifying static files (js, css, html), it cannot be updated in time, and proxy_cache is not configured
It doesn’t seem to be a problem with expires. It doesn’t work even if you change the browser (the curl command retrieves all cached files). It’s nginx that sends cached files
This is the configuration code for js and css cache time in nginx. You can set it very small and it should be fine
You can refer to this http://www.ibm.com/developerworks/cn/...