Support for list of excluded or fallback url matchers
guzart opened this issue · 0 comments
First of all, this is amazing. I am starting to proxy the server communication during the development of an AngularJS application. So my main use case is for development, not testing.
My current issue is there are some times when I want to actually communicate with the server and not use a cached response, specially when am working with a specific functionality.
Let's say am working with a contact manager and I am specifically working with the managing of notes for a given contact. So I'll be sending GET's, POST's, PUT's, PATCH's and DELETE's to /contacts/{contactId}/notes/{noteId}
, it would be great if I could specify a list of matchers for URL's I want to exclude, and better yet, URL's I would like to fallback to a cached response after a timeout.
chameleon.json
{
"falback_timeout": "1s",
"fallback_urls": [
"/contacts(/\\d+)?$/"
] ,
"excluded_urls": [
"/contacts/\\d+/notes"
]
}