{"action":"created","issue":{"url":"https://api.github.com/repos/kbaltrinic/http-backend-proxy/issues/18","labels_url":"https://api.github.com/repos/kbaltrinic/http-backend-proxy/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/kbaltrinic/http-backend-proxy/issues/18/comments","events_url":"https://api.github.com/repos/kbaltrinic/http-backend-proxy/issues/18/events","html_url":"https://github.com/kbaltrinic/http-backend-proxy/issues/18","id":103733033,"number":18,"title":"Different response return when caching is enabled","user":{"login":"rfodge","id":11653643,"avatar_url":"https://avatars.githubusercontent.com/u/11653643?v=3","gravatar_id":"","url":"https://api.github.com/users/rfodge","html_url":"https://github.com/rfodge","followers_url":"https://api.github.com/users/rfodge/followers","following_url":"https://api.github.com/users/rfodge/following{/other_user}","gists_url":"https://api.github.com/users/rfodge/gists{/gist_id}","starred_url":"https://api.github.com/users/rfodge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfodge/subscriptions","organizations_url":"https://api.github.com/users/rfodge/orgs","repos_url":"https://api.github.com/users/rfodge/repos","events_url":"https://api.github.com/users/rfodge/events{/privacy}","received_events_url":"https://api.github.com/users/rfodge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-28T14:52:41Z","updated_at":"2015-09-12T12:42:20Z","closed_at":null,"body":"Hi,\r\n\r\nI have an angular js application that i'm using http-backend-proxy to try to mock the backend.  It is using an angular cache factory (DSCacheFactory).  When i disable the caching, everything works fine.  When the cache is enabled, the format of the response being returned is different from the first call to the second call.  In my tests, the initial page loads containing a list of messages.  The messages are what I mocked and on the initial load they load fine.  I go to another page (settings) then go back to the messages back and it fails.  It fails because the data retrieved is now in a different format.  \r\n\r\nI added console statements to debug which shows the difference in the data:\r\nOn initial load:\r\n![image](https://cloud.githubusercontent.com/assets/11653643/9549170/ad4d7f20-4d72-11e5-9521-e099b2c29513.png)\r\n\r\nOn second attempt:\r\n![image](https://cloud.githubusercontent.com/assets/11653643/9549198/ca6b0398-4d72-11e5-8465-fcef62d78d9a.png)\r\n\r\n\r\nSince there is no messages array in the second attempt, it fails.  \r\n\r\nDoes anyone know why this is occurring or how to fix?  \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/kbaltrinic/http-backend-proxy/issues/comments/139754231","html_url":"https://github.com/kbaltrinic/http-backend-proxy/issues/18#issuecomment-139754231","issue_url":"https://api.github.com/repos/kbaltrinic/http-backend-proxy/issues/18","id":139754231,"user":{"login":"kbaltrinic","id":606631,"avatar_url":"https://avatars.githubusercontent.com/u/606631?v=3","gravatar_id":"","url":"https://api.github.com/users/kbaltrinic","html_url":"https://github.com/kbaltrinic","followers_url":"https://api.github.com/users/kbaltrinic/followers","following_url":"https://api.github.com/users/kbaltrinic/following{/other_user}","gists_url":"https://api.github.com/users/kbaltrinic/gists{/gist_id}","starred_url":"https://api.github.com/users/kbaltrinic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbaltrinic/subscriptions","organizations_url":"https://api.github.com/users/kbaltrinic/orgs","repos_url":"https://api.github.com/users/kbaltrinic/repos","events_url":"https://api.github.com/users/kbaltrinic/events{/privacy}","received_events_url":"https://api.github.com/users/kbaltrinic/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T12:42:20Z","updated_at":"2015-09-12T12:42:20Z","body":"Sorry for the delay.  At first glance, this does not seem like an issue with the proxy.  However, I would need a working example in order to be able to dig into it further."}}