but the SSL-Browser-Lock turns from green to “warning”, because for some reason not all files are transfered via SSL or requested by firefox browser via SSL?
how can i force caddy to redirect/serve all files via SSL?
This is due to the server that you are proxying linking something as HTTP. Caddy automatically redirects this request to the HTTPS equivalent, so that’s why you see two requests.
You’ll need to fix the tomcat instance or the website running on it to use HTTPS links to stop this problem.
Good reply by @comp500. You could also make Caddy more permissive (serve the same files on HTTP as HTTPS, rather than forcing upgrades), by duplicating your site labels and prepending them with both schemes, e.g. http://example.com, https://example.com. I’d probably just leave it, though; more secure is almost always better, and the double request is a really minor delay.
This is inadvisable. The results of this would be:
The request for the logo would happen only once, rather than twice, and it would result in a timeout, and your logo would not be displayed in the page unless it was cached.
Yes, they need to be https:// links.
Absolute links will work fine as long as they have https:// URLs, however I prefer to use relative links, as you don’t have to change them when you change domain.