Which protocol loads when using protocol related URLs?

I just started testing the idea of โ€‹โ€‹less protocols.

The problem I want to solve: on the https page I need to download an external css file from http.

Performing this โ€œnormalโ€ method will crash ... the css file is locked. (Just testing with chrome at the moment).

So my question is: Will the "protocol less than Urls" download the file from http / https / both?

+5
source share
1 answer

If you link to URLs like www.example.com/style.cssthis, this will not work because the protocol is completely absent; the browser will consider it www.example.comas a kind of directory path name.

URL-, //www.example.com/style.css, URL-, ; , , . , https://www.example.com, URL- HTTPS, HTTP.

URL-, , ; . :

+12

All Articles