Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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 ...
Caius Jard's user avatar
20 votes
Accepted

Why do oversized images appear better than images that are the correct size on the web?

It's most likely due to viewing images on retina and high density screens. Before the introduction of Retina-class displays, the average screen density was far lower. Web-based images included enough ...
Pete's user avatar
  • 766
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. ...
aaa's user avatar
  • 266
13 votes

Why do oversized images appear better than images that are the correct size on the web?

(This a basically the same as Pete's answer, just written from a different angle.) Because CSS "pixels" aren't really pixels anymore (and haven't been for quite a while). So what is a pixel,...
Ilmari Karonen's user avatar
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 ...
Michael - sqlbot's user avatar
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 ...
Trebor's user avatar
  • 3,270
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 ...
Immensus's user avatar
  • 121
8 votes

Why do oversized images appear better than images that are the correct size on the web?

In addition to @Pete's excellent answer, it's also possible the images you are using are overcompressed. When you scale down a large image it has more information to work with and so it can appear ...
davidgo's user avatar
  • 7,959
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 ...
bantya's user avatar
  • 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 ...
Kris Sinclair's user avatar
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 ...
davidgo's user avatar
  • 7,959
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 ...
MrWhite's user avatar
  • 42.9k
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 ...
xwindows -on strike-'s user avatar
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
MeltingDog's user avatar
  • 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">
Steve's user avatar
  • 8,503
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 ...
DocRoot's user avatar
  • 4,297
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 ...
LeonidMew's user avatar
  • 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 ...
Patrick Mevzek's user avatar
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 ...
Stephen Ostermiller's user avatar
4 votes

How do real estate websites like Zillow host pages for every address in their database?

As with any other page detection in Google it is done through linking. Zillow doesn't host every single address as a page rather it is being done using a single page template and a database of ...
Chris Rutherfurd's user avatar
4 votes
Accepted

Enabling Multiviews is how you make a web server able to open links with missing extensions?

tl;dr Yes, you can enable MultiViews to serve extensionless URLs. ie. Where the file extension is omitted from a URL that would otherwise map to an existing file. However, be aware of potential ...
MrWhite's user avatar
  • 42.9k
4 votes
Accepted

Legal Ramifications Of Constantly Checking A Website

As mentioned by Stephen Ostermiller, you have several options. 1. Asking Owner Ask the owner of the site directly. Of course, this could be a scary thought... but I think that's the best way if you ...
Alexis Wilke's user avatar
  • 2,235
4 votes

How can I protect my users' privacy when social share buttons may be pre-fetched?

The buttons themselves don't need to be loaded from the social site at all. For example, both Facebook and Twitter let you simply open a window with a special URL, which shows a "New post" window with ...
user1686's user avatar
  • 349
4 votes

How does browser know which HTTP method like GET,POST etc to use?

In short, context. Type a keyword that isn't a URL into the browser's search bar? Send a GET request to the default search engine with that keyword. Type a URL into the browser's search bar? Send a ...
Kent Shikama's user avatar
4 votes
Accepted

Need help setting canonical within PHP

What I do for pages that I want to mark as canonical is put the following code in my header.php file that is loaded on each page: <link rel='canonical' href='<?php echo 'https://' . $_SERVER['...
Michael Moriarty's user avatar
4 votes

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

The word "server" has become a bit ambiguous but general means a computer which provides information to other computers. A web server used to be a physical machine that provided web pages to ...
davidgo's user avatar
  • 7,959
4 votes
Accepted

How to show line numbers for HTML in Developer Tools?

What you're viewing may appear to be HTML, but it's not really HTML in the sense of a text document that has meaningful line numbers. It's the live Document Object Model (DOM) for the page, and it's ...
Maximillian Laumeister's user avatar
3 votes

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

I'm leaving the legal part to others, I'm replying about the implementation: Using an index.html is a terrible idea. Say your website has pages indexed somewhere, or some forum has a few backlinks. If ...
Martijn's user avatar
  • 6,806
3 votes

Set up a wiki in watch mode with Hugo static site generator?

You can't make accounts with Hugo. Hugo just generates static webpages from your frontmatter and markdown details. It parses template style to specific layout that you have provided in your ...
Goyllo's user avatar
  • 5,507
3 votes
Accepted

New Website, Digital Ocean spam traffic very high on Google Analytics

@closetnoc was right. I have contacted Digital Ocean and they responded with: It looks like these IPs are related to a monitoring service, are you currently subscribed to one? If not, it's ...
Qerim's user avatar
  • 113

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