{"action":"closed","issue":{"url":"https://api.github.com/repos/colynb/gulp-data/issues/18","labels_url":"https://api.github.com/repos/colynb/gulp-data/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/colynb/gulp-data/issues/18/comments","events_url":"https://api.github.com/repos/colynb/gulp-data/issues/18/events","html_url":"https://github.com/colynb/gulp-data/issues/18","id":91397258,"number":18,"title":"Reload data with browsersync when modify json","user":{"login":"gabrielgodoy","id":2944970,"avatar_url":"https://avatars.githubusercontent.com/u/2944970?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielgodoy","html_url":"https://github.com/gabrielgodoy","followers_url":"https://api.github.com/users/gabrielgodoy/followers","following_url":"https://api.github.com/users/gabrielgodoy/following{/other_user}","gists_url":"https://api.github.com/users/gabrielgodoy/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielgodoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielgodoy/subscriptions","organizations_url":"https://api.github.com/users/gabrielgodoy/orgs","repos_url":"https://api.github.com/users/gabrielgodoy/repos","events_url":"https://api.github.com/users/gabrielgodoy/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielgodoy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-27T01:19:55Z","updated_at":"2015-06-27T02:47:16Z","closed_at":"2015-06-27T02:47:16Z","body":"Hi,\r\n\r\nWhen I start the server, the json loads as it should be, but with the gulp and browsersync already running, if I make a modification on my json file, it didn't reflect the changes on the browser, only if I restart browsersync. \r\n\r\nDo you know how can I achieve the instant reload of data from json, with browsersync?\r\nI think it's some cache from the 'require' function of nodejs.\r\n\r\nHere's a piece of my Gulpfile:\r\n\r\n```javascript\r\n\r\n// Jade templates compilation\r\ngulp.task('templates', function() {\r\n  \treturn gulp.src('assets/views/*.jade')\r\n  \t\t.pipe($.data(function(file) {\r\n  \t\t\treturn require('./assets/views/' + path.basename(file.path).split('.', 1)[0] + '.json'); \r\n    \t}))\r\n    \t.pipe($.jade({\r\n    \t  pretty: true\r\n    \t}))\r\n    \t.pipe(gulp.dest('dist/'))\r\n    \t.pipe(reload({stream: true}));\r\n});\r\n\r\n```"}}