Serve static symbolic links with nginx
- by mirceapasoi
I'm using nginx to serve some static files that are actually symbolic links. When I do this the Last-Modified headers sent by nginx use the timestamp of the target file, not of the link itself.
So, if I now have link C pointing to A, and I change it to point it to B (A and B have the same timestamp) I still see the content of A in the browser. I don't know if it's from the browser cache (because it has the same Last-Modified header) or from nginx.
Any idea on how to fix this?