{"action":"created","issue":{"url":"https://api.github.com/repos/HubSpot/offline/issues/77","labels_url":"https://api.github.com/repos/HubSpot/offline/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/HubSpot/offline/issues/77/comments","events_url":"https://api.github.com/repos/HubSpot/offline/issues/77/events","html_url":"https://github.com/HubSpot/offline/issues/77","id":33797277,"number":77,"title":"Ability to ignore certain URL patterns","user":{"login":"fwielstra","id":394435,"avatar_url":"https://avatars.githubusercontent.com/u/394435?v=3","gravatar_id":"","url":"https://api.github.com/users/fwielstra","html_url":"https://github.com/fwielstra","followers_url":"https://api.github.com/users/fwielstra/followers","following_url":"https://api.github.com/users/fwielstra/following{/other_user}","gists_url":"https://api.github.com/users/fwielstra/gists{/gist_id}","starred_url":"https://api.github.com/users/fwielstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwielstra/subscriptions","organizations_url":"https://api.github.com/users/fwielstra/orgs","repos_url":"https://api.github.com/users/fwielstra/repos","events_url":"https://api.github.com/users/fwielstra/events{/privacy}","received_events_url":"https://api.github.com/users/fwielstra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-05-19T13:11:19Z","updated_at":"2015-05-10T04:41:03Z","closed_at":null,"body":"Hi, we'd love to use this lib in our application, however we have a page that does regular requests (say every second) on which it doesn't matter if the web application is online or not at that time.\r\n\r\nWhat I'm suggesting is an option, 'ignoredRequestPatterns', an array of regexes for which offline.js will not trigger the offline notification for:\r\n\r\n```js\r\nignoredRequestPaths: [/api\\/ping$/]\r\n```\r\n\r\nI've had a go at trying to fork and implement this myself, but I have been unable to decipher the xhr checks enough to get the URL thereof and not perform the check. Help would be appreciated."},"comment":{"url":"https://api.github.com/repos/HubSpot/offline/issues/comments/100582414","html_url":"https://github.com/HubSpot/offline/issues/77#issuecomment-100582414","issue_url":"https://api.github.com/repos/HubSpot/offline/issues/77","id":100582414,"user":{"login":"indolering","id":44454,"avatar_url":"https://avatars.githubusercontent.com/u/44454?v=3","gravatar_id":"","url":"https://api.github.com/users/indolering","html_url":"https://github.com/indolering","followers_url":"https://api.github.com/users/indolering/followers","following_url":"https://api.github.com/users/indolering/following{/other_user}","gists_url":"https://api.github.com/users/indolering/gists{/gist_id}","starred_url":"https://api.github.com/users/indolering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indolering/subscriptions","organizations_url":"https://api.github.com/users/indolering/orgs","repos_url":"https://api.github.com/users/indolering/repos","events_url":"https://api.github.com/users/indolering/events{/privacy}","received_events_url":"https://api.github.com/users/indolering/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T04:41:03Z","updated_at":"2015-05-10T04:41:03Z","body":"I've added functionality that checks every request against an array of regular expressions and strings: https://github.com/indolering/offline\r\n\r\nI need to write some documentation and run some more tests before I submit a PR."}}