Serve static symbolic links with nginx
Posted
by mirceapasoi
on Stack Overflow
See other posts from Stack Overflow
or by mirceapasoi
Published on 2010-03-23T20:45:01Z
Indexed on
2010/03/24
3:53 UTC
Read the original article
Hit count: 218
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?
© Stack Overflow or respective owner