1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Full HTTPS

Discussion in 'Feedback & Suggestions' started by deathtaker27, 13 Feb 2018.

  1. deathtaker27

    deathtaker27 Modder

    Joined:
    17 Apr 2010
    Posts:
    2,238
    Likes Received:
    186
  2. MLyons

    MLyons 70% Dev, 30% Doge. DevDoge. Software Dev @ Corsair Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    3 Mar 2017
    Posts:
    4,198
    Likes Received:
    2,781
    Done. not sure how we missed that. thanks :thumb:
     
  3. deathtaker27

    deathtaker27 Modder

    Joined:
    17 Apr 2010
    Posts:
    2,238
    Likes Received:
    186
    No probs gets rid of that annoying not fully secure
     
  4. MLyons

    MLyons 70% Dev, 30% Doge. DevDoge. Software Dev @ Corsair Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    3 Mar 2017
    Posts:
    4,198
    Likes Received:
    2,781
    What not fully secure? got a screenshot?
     
  5. deathtaker27

    deathtaker27 Modder

    Joined:
    17 Apr 2010
    Posts:
    2,238
    Likes Received:
    186
    its gone now,

    the green padlock was yellow due to the 1 http image you fixed :)
     
  6. MLyons

    MLyons 70% Dev, 30% Doge. DevDoge. Software Dev @ Corsair Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    3 Mar 2017
    Posts:
    4,198
    Likes Received:
    2,781
    ahh. I thought it was doing the other big scary warning thing. Thanks again :thumb:
     
    alfizzle likes this.
  7. yuusou

    yuusou Multimodder

    Joined:
    5 Nov 2006
    Posts:
    2,879
    Likes Received:
    955
    May wanna check the articles as well. For example, the review of "They are Billions", the screenshots are hard-coded http. Also, the link to twitter points to http.
     
  8. MLyons

    MLyons 70% Dev, 30% Doge. DevDoge. Software Dev @ Corsair Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    3 Mar 2017
    Posts:
    4,198
    Likes Received:
    2,781
    where we point to isn't that big of an issue but the fact those images are hardcoded is. I'm not sure how as all articles are made the same way but not all images are hard coded. I'll change the link and look into the images now. Thanks
     
  9. yuusou

    yuusou Multimodder

    Joined:
    5 Nov 2006
    Posts:
    2,879
    Likes Received:
    955
    Dev/Doge to the rescue.
     
  10. MLyons

    MLyons 70% Dev, 30% Doge. DevDoge. Software Dev @ Corsair Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    3 Mar 2017
    Posts:
    4,198
    Likes Received:
    2,781
    Figured it out. It was a very interesting issue related to how the editors were visiting the site. All new articles should now link you to HTTP images on HTTP connections and HTTPS versions when visiting the site on HTTPS. Thanks again for letting us know. Just realised I forgot to change the twitter link so will do that at some point aswell.
     
    deathtaker27 likes this.
  11. yuusou

    yuusou Multimodder

    Joined:
    5 Nov 2006
    Posts:
    2,879
    Likes Received:
    955
    \o/ Dev/Doge!
     
  12. deathtaker27

    deathtaker27 Modder

    Joined:
    17 Apr 2010
    Posts:
    2,238
    Likes Received:
    186
    if you want to increase your SEO and decrease server load take a look at cache-control headers as well (how long an image is cached by the client to stop redownloading it :) )
     
  13. MLyons

    MLyons 70% Dev, 30% Doge. DevDoge. Software Dev @ Corsair Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    3 Mar 2017
    Posts:
    4,198
    Likes Received:
    2,781
    I'm starting to suspect you're a developer ;). The article images are already cached by my browser. Just checked in chrome and the images seem to have them unless I'm missing something.
     
  14. deathtaker27

    deathtaker27 Modder

    Joined:
    17 Apr 2010
    Posts:
    2,238
    Likes Received:
    186
    DevOps now days, was Ops

    Can't find it now but if I do I will send it your way :)
     
  15. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Why not just redirect all http requests to https? If the site's fully secure (it seems to be now) then there's really no need for http anymore. You'd benefit from offering HTTP2 as well.

    If you go exclusively HTTPS (and you should :thumb:), If you set up a content-security-policy header, you can not only specify a policy for browsers to adhere by, but also receive automated reports (via the handy report-uri: directive) which will alert you every time you're serving an asset that violates a policy of your choosing.

    In other words: rather than people like us starting threads to tell you that, oops, you've missed an insecure image in the site somewhere, you can be alerted to it automatically, which is always nice. Highly recommended, and little known, it seems, at this point in time anyway.

    Also, there seems to be some disparity between response headers on various assets.

    This: http://bit-tech.net/static/public/image/body-20160101.jpg

    only sends back E-Tag and Last-modified headers. ($ curl -I http://bit-tech.net/static/public/image/body-20160101.jpg)

    However this: https://www.bit-tech.net/media/image/2018/2/a431c5fc-6d33-43ad-9eb7-673e86f3bb1d.jpeg

    sends back E-Tag and Last-modified, as well as Cache-control and Expires headers (which is good). It seems a bit of consolidation work is required between the two to get responses consistent. And for what it's worth, I'd say the 7 day cache-control+expires headers are a bit conservative; I doubt those assets ever change, so why not cache 'em for much longer?

    :cooldude:
     
    Last edited: 17 Feb 2018
  16. MLyons

    MLyons 70% Dev, 30% Doge. DevDoge. Software Dev @ Corsair Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    3 Mar 2017
    Posts:
    4,198
    Likes Received:
    2,781
    Doing this on the forums is tricky because a ton of content is from 3rd party hosts and they were posted as HTTP and it's not as simple as just swapping HTTP for HTTPS as:
    a) I don't think we could do that and
    b) some sites don't work at all on HTTPS so the images won't show

    For the main site I'm not sure and as I'm only an apprentice (It was actually a year last week since I joined) I don't really get much say. On the response headers I'm not really sure as I'm pretty sure the way that was implemented was before I got here but it's something I can enquire about. Thanks for all the help. I know it may seem like I don't know a lot but I've only been a dev professionally for a year so I've still got tons to learn and threads like this help me a lot :thumb:. If you have any resources on this sort of stuff it would be greatly appreciated. My goal here from the start has always been to interact with the community more than in the past to help improve the site so I see all of this as a win.
     
  17. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Sorry, I was on about the site, not the forums (for exactly the reasons you cite) :thumb:

    As for the rest, :thumb::thumb:
     

Share This Page