-
Notifications
You must be signed in to change notification settings - Fork 16
Clarify whether path matches cross-origin or just same origin #45
Comments
FWIW, I can't get anything XD to cache. For example:
|
I've experimented a bit more and think I have a better idea as to what's going on under the hood in When using When using
Regarding what @ebidel is seeing, first off, the docs are incorrect about the need to double-escape (bug), so you'd actually want If your goal is to use something other than the default caching strategy for
I'll follow up with a PR to address the issues raised in the bugs, and some additional test cases to catch them. |
@jeffposnick you beat me to it :) Yes, that is correct. Routes are all same-origin unless specified otherwise, except the default route. It's the default route case that I brought up before our I/O talk. |
There are some places in the docs that state that
path
will only match same-origin requests, but @wibblymat didn't think that was the case after looking at thesw-toolbox
source. I need to double-check and most likely update the docs to reflect that cross-origin requests are matched as well.The text was updated successfully, but these errors were encountered: