Yesterday I had a pretty hard time with cached CSS / JS files on my developer environment. I supposed to review layout changes, but I always got the old CSS files. I have spent about 2 hours to find the reason. At the end the solution was to turn off the syscall sendfile in my virtual host configuration.
1 2 3 4 5 6 7 8 9 10 |
server { listen 80; ..... location ~\.(css|js)$ { sendfile off; } } |
If you use Nginx as a reverse proxy to serve pages from an application server, you can leave sendfile turned off.