Git Product home page Git Product logo

Comments (8)

jvoigtlaender avatar jvoigtlaender commented on August 18, 2024

Not reproducible here. Your example link http://package.elm-lang.org/packages/elm-lang/core/2.1.0/ gives good looking documentation pages for me (just checked) on my machine with all of:

  • Firefox 39.0 (latest version it says)
  • Chrome 44.0.2403.125 (latest version it says)
  • Internet Explorer

from package.elm-lang.org.

0xR avatar 0xR commented on August 18, 2024

Maybe there is a load balancer and a malfunctioning node. Can you check your response headers?

For me even with a simple curl, the response headers show this:

HTTP/1.1 200 OK
Date: Sat, 01 Aug 2015 11:18:44 GMT
Server: Snap/0.9.5.1
FFI-Control: Data
Content-Type: text/plain

I ran this command

curl -I http://package.elm-lang.org/packages/elm-lang/core/2.1.0/

from package.elm-lang.org.

jvoigtlaender avatar jvoigtlaender commented on August 18, 2024

The exact output of that command on my machine is:

HTTP/1.1 200 OK
Server: Snap/0.9.5.1
Date: Sat, 01 Aug 2015 11:29:44 GMT

from package.elm-lang.org.

0xR avatar 0xR commented on August 18, 2024

So either the server I'm reaching is giving me a different response, or there is a man in the middle going on which is modifying my headers. This is why we need https everywhere...

from package.elm-lang.org.

0xR avatar 0xR commented on August 18, 2024

When I browse on my phone or over tor there is no problem. Now I'm worried my ISP is doing something funky.

from package.elm-lang.org.

evancz avatar evancz commented on August 18, 2024

If you are comfortable, can you share any more details to help us know if this is specific to your computer? If it is specific, I am not sure if we have the power to resolve this.

from package.elm-lang.org.

0xR avatar 0xR commented on August 18, 2024

Oh wow, today the problem has magically disappeared. This is a bit disturbing. Now it's not possible to do further investigation.

As for things you can do I can think of two options

  1. Make *.elm-lang.org support https, that should avoid anyone messing with my http headers (although a good certificate might be expensive)
  2. Make the server add an explicit content-type text/html, I think its good practice to include it if you can. I suspect that the problem doesn't occur when the content-type is set.

from package.elm-lang.org.

evancz avatar evancz commented on August 18, 2024

Okay, let's break those two suggestions out into issues of their own. Sounds like 2 is easy. No idea on 1, the answer may be "we don't have resources to do that right now"

from package.elm-lang.org.

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.