{"action":"closed","issue":{"url":"https://api.github.com/repos/puphpet/puphpet/issues/1101","labels_url":"https://api.github.com/repos/puphpet/puphpet/issues/1101/labels{/name}","comments_url":"https://api.github.com/repos/puphpet/puphpet/issues/1101/comments","events_url":"https://api.github.com/repos/puphpet/puphpet/issues/1101/events","html_url":"https://github.com/puphpet/puphpet/issues/1101","id":42727317,"number":1101,"title":"Nginx NFS Caching","user":{"login":"drpain","id":1902518,"avatar_url":"https://avatars.githubusercontent.com/u/1902518?v=3","gravatar_id":"","url":"https://api.github.com/users/drpain","html_url":"https://github.com/drpain","followers_url":"https://api.github.com/users/drpain/followers","following_url":"https://api.github.com/users/drpain/following{/other_user}","gists_url":"https://api.github.com/users/drpain/gists{/gist_id}","starred_url":"https://api.github.com/users/drpain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drpain/subscriptions","organizations_url":"https://api.github.com/users/drpain/orgs","repos_url":"https://api.github.com/users/drpain/repos","events_url":"https://api.github.com/users/drpain/events{/privacy}","received_events_url":"https://api.github.com/users/drpain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-09-14T18:49:43Z","updated_at":"2015-03-12T06:29:02Z","closed_at":"2015-03-12T06:29:02Z","body":"Not sure if anyone else ran into this before. I have used this vagrant provisioning which is awesome BTW in a number is different applications. \r\n\r\nFor example my own tiny websites it works awesome with little to no issues. And at the office on a large Magento PHP bases system, which uses a number of caching mechanisms.\r\n\r\nI ran into an issue where PHP was hanging onto old CSS and JS files for dear life and would only serve that cached version. I located the problem which was that Nginx was reading the file in it's shared folder and caching it. \r\n\r\nI used the following directive in the /etc/nginx/nginx.conf to ensure that this does not happen. \r\n\r\nhttp { ...\r\n...\r\nsendfile off;\r\n...\r\nserver {\r\n   ....\r\n}\r\n}\r\n\r\nMy question is, can't this always be done to prevent this abnormal behaviour?"}}