I have the challenge that I want my site to be cache-able by and external varnish cache provider.
Most of my page gets cached nicely, but elements like the ico file, images and css are written with the full url in code and hence doesn't use the cached version.
www.domain.com points to
When I go to
www.domain.com the urls for the images looks like this
What I wanted was that it just wrote a url relative to the root of the site.
The issue is the same with files included from the THEME.libraries.yml file.