In short, passing the following to add_static_view does not behave as expected:
It does not detect that as a valid url path, and therefore generates long, broken urls. Ideally, this should generate urls like:
# it should return '//static.example.com/x.png'
# instead it returns 'http://example.com//static.example.com/x.png
In this way, the templates do not need to be rendered differently for HTTP vs HTTPS connections.
@mankyd: I do believe I have fixed the issue in pull request #838 if you could test against that I would be grateful!