Coder Social home page Coder Social logo

Support for AutoHttps about curl HOT 7 CLOSED

cujojs avatar cujojs commented on June 22, 2024
Support for AutoHttps

from curl.

Comments (7)

unscriptable avatar unscriptable commented on June 22, 2024

Hm. If all of your urls start with // instead of http:// or https://, they should adopt the protocol of the current document. Is that an option?

from curl.

asilvas avatar asilvas commented on June 22, 2024

It is an option, however, as with most any "feature", there are niche case issues in some browsers. The only bug I am aware of (would not be surprised if there were others), is that IE7/8 will download the resource twice if "//path" is utilized for link/stylesheets only. It'd be a nice add if it could be done with few bytes -- removes concern over silly issues like this.

from curl.

asilvas avatar asilvas commented on June 22, 2024

Here's the reference to what I was talking about: http://www.stevesouders.com/blog/2010/02/10/5a-missing-schema-double-download/

from curl.

unscriptable avatar unscriptable commented on June 22, 2024

Thanks for that link!

Since the bug only affects link elements in IE7/8, I'd like to treat this as a bug in the link! and css! plugins and call it "done".

However, you're concerned about wrangling dozens of devs who may or may not understand that they should be using protocol-relative urls. Hm...

Let me think about this one a bit more.

from curl.

asilvas avatar asilvas commented on June 22, 2024

I thought the same, it could be rolled into the plugins themselves. My only reservation was that than you'd have the same code in multiple places, and may not be any savings. Anyway, not a big deal, as this issue is not currently holding me back.

from curl.

asilvas avatar asilvas commented on June 22, 2024

This issue is connected with Issue 13

from curl.

asilvas avatar asilvas commented on June 22, 2024

This was resolved indirectly by providing support for relative domain ("//domain") paths with Issue 13. I'll go ahead and close this issue for now, just keep in mind that one thing relative domain paths do not support is for local domain-less testing, for which there are at least workarounds for.

from curl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.