8 ms·
Well, the obligatory counterpart: http://no-www.org/ http://no-www.org/
by marcosdumay 11y ago
Well, the obligatory counterpart:
http://no-www.org/ http://no-www.org/
- EugeneOZ 11y ago"Technical part" is not as convincing. P.S., About cookies: Don't use cookies, LocalStorage is much better.
- michaelmior 11y ago> Don't use cookies, LocalStorage is much better. Source? Not saying I agree or disagree, but a statement like that without any supporting arguments or discussion isn't particularly helpful.
- EugeneOZ 11y agoHave you tried to find something? Let me help you: http://caniuse.com/#feat=namevalue-storage http://caniuse.com/#feat=namevalue-storage http://stackoverflow.com/a/3220802/680786 http://stackoverflow.com/a/3220802/680786 In short: LocalStorage is supported by all browsers, has no security issues as cookies have, has much bigger storage limit, much more handy API and don't need to be send on each request.
- tiglionabbit 11y agoIt doesn't accomplish the same thing. Cookies are added to every web request, while you have to supply your localstorage values manually if you want to use them. At the least, this requires JavaScript. It's also impossible to do for regular clicks on links and when loading images and scripts. Sometimes you want to authenticate those too.
- EugeneOZ 11y agoOk, I'll rephrase: only use cookies when you want to send them with requests to static files. But don't forget - you will not be able to use CDN in this case.
- vidarh 11y agoNothing stops you from using a CDN with cookies as long as your app generates proper caching directives and the CDN obeys them. The only reason this would ever be a problem is if your app/server does not correctly mark pages that may contain private/user-specific content accordingly. Further, a common method to reduce the risk of this is to place purely static public assets and user-specific private data on different domains.
- EugeneOZ 11y agoAnd who will do authentication process? CDN? And different domains can be an issue too. > Further, a common method to reduce the risk of this is to place purely static public assets and user-specific private data on different domains. In other words, "don't use CDN when you need cookies", fine.
- manigandham 11y agoA CDN is just a reverse proxy with caching. The "proxy" part means anything, including cookies, can be transferred from the end-user to your origin server. There is no issue using CDNs with cookies.
- EugeneOZ 11y agoNo, CDN is content delivery network and it will not wait your server response on each request, otherwise it will kill whole point of CDN existence.
- manigandham 11y agoYes, that's what the letters CDN stand for and is just a marketing term. Technically, they are reverse proxies with a focus on caching, however that is not all they do. You can use them for various other features like security and front-end optimization and they work fine with cookies. It's common to use a CDN for the entire site - caching static files at the edge while sending page requests to the origin server with all the cookies, especially important as many sites are now dynamic and customized to the individual. There is no issue in using a CDN to proxy all requests.
- EugeneOZ 11y ago> "Cookies are added to every web request, while you have to supply your localstorage values manually if you want to use them. " And actually it's advantage of local storage, because of less amount of garbage traffic.
- manigandham 11y agoThey're not the same thing. Cookies add state to HTTP which is very useful, compared to LocalStorage which is really just client-side storage that can also be used to store state but at the higher web application level rather than HTTP.
- sandstrom 11y agoIf you need state you typically use JS + XHR and can set your own headers. Cookies are just header values with some predefined behaviour wrapped around them.
- manigandham 11y agoSure, which again means it's on a web application level rather than working at the HTTP level. There are lots of uses for cookies without having JS or a full browser available.
- vortico 11y agohttp://www.www.extra-www.org/ http://www.www.extra-www.org/ used to be around, but the domain has expired at least two years ago.
- frik 11y agoI know some websites that prefix even all their subdomains with www. For HN it would look like this: https://www.news.ycombinator.com https://www.news.ycombinator.com On the other side http://www.bbc.co.uk http://www.bbc.co.uk is similar, but co.uk is sort of the ".com" of GB.
- alexbecker 11y agoI tried to pull it up on archive.org, but the archive page seems to redirect in a loop, even though the response has a 200 status: https://web.archive.org/web/20100906050755/http://extra-www.org/ https://web.archive.org/web/20100906050755/http://extra-www.... Edit: Looks like the tag <meta http-equiv="refresh" content="0"> will trigger an immediate client-side refresh. Why do browsers support this?
- tinalumfoil 11y agoIs anyone else really bothered that 2 sites advocating for "best practices" fail to use HTTPS? People are willing to write paragraphs arguing the technical merits of subdomains but nobody could take 10 minutes to put their site behind CloudFlare?
- anonx 11y agoI'm using CloudFlare for GH Pages based web-sites with custom domains. However, Tor user in me says that's not really a "good practice". Looks like there isn't a way to turn off that annoying "Attention Required!" "One more step" checks, is there?
- couchfare 11y agoNot really. These are old sites build before CloudFlare even existed or the encrypt-ALL-the-traffic movement started. I myself prefer non-HTTPS over CloudFlare for sites like this. As for best practice: > Back in 2003, Lee Holloway and I started Project Honey Pot as an open-source project to track online fraud and abuse. The Project allowed anyone with a website to install a piece of code and track hackers and spammers. We ran it as a hobby and didn't think much about it until, in 2008, the Department of Homeland Security called and said, 'Do you have any idea how valuable the data you have is?' That started us thinking about how we could effectively deploy the data from Project Honey Pot, as well as other sources, in order to protect websites online. That turned into the initial impetus for CloudFlare. -- Matthew Prince, CloudFlare CEO