Extending NewDefaultUrlProvider leads to error

@lawejo I saw your thread here:

Did you run into any similar issue when extending NewDefaultUrlProvider?
And did you find any solution to the caching issue?