URLs sent to the service seem to sometimes come back with trailing / and sometimes not.
Reproduce --
- Start VE
- Open Citoid inspector
- Type the string 'amazon.com' in the lookup input
- Click 'lookup'
- Examine the network response
- Repeat 2-3 times
Result -- sometimes the response shows url with trailing slash (http://amazon.com/) and sometimes without (http://amazon.com)
These are two instances of the stored object from the document store for the same reference node created by citoid for the query "amazon.com"; one has / and one doesn't, which caused the store to think it didn't exist the second time, rather than pull it from the cache.
[{"mw":{"parts":[{"template":{"params":{"accessdate":{"wt":"2015-03-19"},"title":{"wt":"Amazon.com: Online Shopping for Electronics, Apparel, Computers, Books, DVDs & more"},"url":{"wt":"http://amazon.com"}},"target":{"href":"Template:Cite web","wt":"Cite web"}}}]},"type":"mwTransclusionBlock"},null]
vs
[{"mw":{"parts":[{"template":{"params":{"accessdate":{"wt":"2015-03-19"},"title":{"wt":"Amazon.com: Online Shopping for Electronics, Apparel, Computers, Books, DVDs & more"},"url":{"wt":"http://amazon.com/"}},"target":{"href":"Template:Cite web","wt":"Cite web"}}}]},"type":"mwTransclusionBlock"},null]