83 votes
Accepted

How do I open the JavaScript console in different browsers?

Chrome Opening the “Console” panel of Chrome’s DevTools: Windows and Linux: Ctrl + Shift + J Mac OS: Cmd + Opt + J Note: In addition to the “Console” panel, there also exists a smaller slide-up ...
34 votes

What is the need of methods like GET and POST in the HTTP protocol?

Please note the question has changed/been clarified since this answer was first written. A further response to the latest iteration of the question is after the second horizontal rule What is the ...
13 votes

Can I make my site available world wide without renting a hosting server?

You can host a website on a home system, if you like. There is a caveat, though. Some Internet Service Providers (ISPs) don't allow their customers to host their own servers, while others will allow ...
  • 231
13 votes

What is the need of methods like GET and POST in the HTTP protocol?

HTTP can be thought of as one specific case of generic principles of Remote Procedure Call: you tell the server what you want with some variable field in the request, the server responds accordingly. ...
  • 266
12 votes
Accepted

What is the use case for Fax links in a webpage?

Computers, mobiles and tablets can send fax's with software, its just like sending an email, it was added to rfc2086 15 years ago but it never took off and as far as I know no major browsers support ...
  • 32.8k
11 votes
Accepted

10 megabyte gzip limit in AWS Cloudfront?

This is a design limitation: The file size must be between 1,000 and 10,000,000 bytes. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html ...
10 votes

Redirect visitors when site is too busy

When your website is too busy due to a large traffic, the best way of redirection is using custom error documents. So, when a user gets 503 error code, the server will redirect visitors to the custom ...
9 votes
Accepted

Which is the practical difference between a server and a web server?

"Server" is a generic term that represents a computer that shares something. There are many different types of servers. Some share databases, others share web sites, still others share ...
  • 3,013
8 votes
Accepted

Does it make sense to host media on a .onion site on the darknet, or can I link to lightweb as well?

As it turns out, Tor has an OnionTrafficOnly setting. Also, if the site contains links to non-Tor resources, an "exit" is used, which slows down the data download considerably. Thus, it is ...
  • 121
7 votes

Is it possible to stop Chrome and other browsers from pre-fetching/rendering my site?

Google Chrome does not send any special headers to prerender requests anymore. See: https://code.google.com/p/chromium/issues/detail?id=86175 https://github.com/nickhsharp/prefetchNightmare
  • 171
7 votes

Tradeoffs around using a query string vs embedding version number in the CSS/JS files

Just to clarify, since it's not explicitly mentioned in the question, that the reason for doing this in the first place is to break the client cache (aka "Cache Busting")... As far as I know ...
  • 42.2k
7 votes
Accepted

Why does Chrome resolve websitename.localhost as localhost?

From the Wikipedia entry for .localhost (TLD): As a top-level domain, the name has traditionally been defined statically in host DNS implementations with address records (A and AAAA) pointing to ...
  • 42.2k
7 votes

Why does Chrome resolve websitename.localhost as localhost?

From https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/ There's a proposal to add the .localhost domain as a new standard, which will make lives of developers way easier. It would ...
  • 171
7 votes

What is the need of methods like GET and POST in the HTTP protocol?

From my personal point-of-view as a developer, it can make creating API endpoints much easier. For instance if I write a controller that manages products on a website I can use the same URL to do ...
7 votes

Most website visitors don't have Java enabled

Java != Javascript Javascript is a scripting language supported by the overwhelming majority if interactive browsers. Note that I said Interactive browsers - most bots will have extremely limited - if ...
  • 6,761
6 votes

How to hide h1 and h2 tags using JavaScript while still having them for SEO

You can't hide h1 and h2 tags (or any text for that matter) and still have them apply positively to SEO. For several years now, Google has been trying to index precisely what the user sees. Google is ...
  • 42.2k
6 votes

What is the need of methods like GET and POST in the HTTP protocol?

What is the need of methods like GET and POST in the HTTP protocol? It seems that you forgot the old days when HTTP servers were there just to serve files; not running script, CGI, or making dynamic ...
5 votes

Redirect visitors when site is too busy

It seems like you're aiming for the second-worst outcome. If you're expecting a spike, you have time to do something: Implement in-code caching (can be easy, can take a while to get right) Optimise ...
  • 151
5 votes
Accepted

My Chrome Developer Tools is missing the Animation Inspector button

Ah, found another way to get it working: Click the 3 dots to the top right, then More Tools, then select Animations
  • 1,339
5 votes

Why would my website language be incorrectly detected, and how do I set it to the right language?

Try this in the <head> section: <meta charset="UTF-8"> <meta name="google" content="notranslate"> <meta http-equiv="Content-Language" content="en">
  • 7,999
5 votes
Accepted

Why would my website language be incorrectly detected, and how do I set it to the right language?

One thing to note is that when Google suggests, "This page is in XYZ" and offers translation, it doesn't necessarily mean it thinks the entire page is in that language. Even if it thinks ...
  • 4,287
5 votes
Accepted

Google Mobile Usability says "Content wider than screen" even though I can't reproduce that locally and X overflow is set to hidden

I have remove all "position: absolute" from classes. But that classes were assigned to hidden content what fit fine on smallest smartphone screen, also most of them were not connected to any page ...
  • 605
5 votes
Accepted

Confusing domain name extensions

TL;DR No one can predict the future (so theoretically the case you present can happen, in practice I wouldn't bet on it), especially because ICANN, in charge of TLDs creation has a lot of rules and ...
5 votes
Accepted

Is it possible for a hacker to point another domain at my domain?

Anybody can point any domain to your web server. When this happens it is usually not an attack or a security threat. It is often because some other website used to use your IP address or because ...
4 votes
Accepted

Is it possible to compare http requests with download time?

Yes, if load time is lower, you will have optimised the page. Also, the font file will be cached after the first request, so you will most likely end up with only a single request for the font file. ...
  • 211
4 votes
Accepted

.com/ vs .com when hosting a website

Some hostings might not have mapping for default file to be used as homepage, thus you might sometimes need to add it. If this is Apache-based hosting(commonly Linux hostings use Apache), you will ...
  • 156
4 votes
Accepted

Need help to understand the URL for dynamic content

In short, yes you are correct. The only big part of the equation you are missing is server-side URL rewriting - where essentially a request for http://www.example.com/aaa could be internally ...
4 votes

Is warning users on the homepage enough to limit access to 18+ for a website with adult content on it?

This is not legal advice, but I know someone who runs several adult sites. He puts up the warning page with the 18 U.S.C. Section 2257 Compliance Notice and that's it. I'm not sure there is a way to ...
  • 66
4 votes
Accepted

Is warning users on the homepage enough to limit access to 18+ for a website with adult content on it?

There is no way to do ensure someone is over 18 without additional work (either from you or the viewer or both). Having people register and require scanned ID or similar could work, as could require ...
  • 6,761
4 votes

Can I make my site available world wide without renting a hosting server?

Yes you can host it on your own server. If you have a static IP, just set up your network as if are a server and this should work. There is plenty to be found on the matter. You don't need a ...
  • 6,776

Only top scored, non community-wiki answers of a minimum length are eligible