I’ve been reading about nginx recently and I came across the proxy_cache directive that I haven’t seen in any of the nginx Meteor configs online. Is there a reason for that, or would it be a good idea to use it?
With the only thing to not cache being the route /?
Are there any security concerns using this cache such as caching users’ private data? How does the cache work with websockets?
Also, I’ve nginx configs that assume that the cached files are on the server running nginx already, but if the server is dedicated to only running nginx this doesn’t work, so is proxy_cache then the way to do this?
Caching with nginx is great, but it’s intended to help out with serving static files. Whether its use will make much of an impact in your environment really depends on the nature of your application, and how much static content your serving up. Check out nginx’s great 5 Performance Tips for Node.js Applications article, for a good explanation of how this works, and when it makes sense to use it.