Skip to main content
8 votes

What’s the Difference Between a webhook and an API?

I'll illustrate this with a concrete example: Credit card payments. When your site wants to charge a credit card, you call an API at your credit card processor. The credit card processor then ...
Stephen Ostermiller's user avatar
5 votes
Accepted

How does changing an HTTP referrer header help circumvent crawler blocking

The idea would be to make your requests look as much like a real browser as possible. Real browsers send referrer headers. You'd want to send referrer headers that look as much as possible like ...
Stephen Ostermiller's user avatar
5 votes
Accepted

Is it faster to request a single 7KB file faster than to request 6 files totalling 7KB?

With HTTP/1, the answer is yes. As mentioned by Michael Hampton, combining files (which prefer I call "concatenation") is a typical web site performance optimization. This is due to overhead related ...
Andrew Myers's user avatar
3 votes
Accepted

If servers cannot send a page within a specified amount of time, how do they send the "request time out" signal?

It may be the client displaying that message and not the server sending anything. If it is a response coming from the server (408 response) it means a connection was opened but remained idle for too ...
Jake 1986's user avatar
  • 863
3 votes

What’s the Difference Between a webhook and an API?

Here's an example of the difference between webhook and API in layman's term: Say you ordered something online and the delivery would be today but you're at work so you told your maid get the package ...
Community's user avatar
  • 131
1 vote

setting custom HTTP header based on HTTP error code (Apache 2.4)

From my understanding, you want to add a particular header depending on the request status of the client. While you can't do that directly as an IF statement (per documentation), here's a workaround ...
Luis Alberto Barandiaran's user avatar
1 vote
Accepted

Requests from a specific older version of Firefox distributed across many Google and Cloudflare IP addresses

I've come to find that this is Discord doing this, as it uses this user agent for fetching images for embeds (maybe the default electron user agent or something similar?), and I can tell as I started ...
Donovan_DMC's user avatar
1 vote
Accepted

Send a different image from my web host if it was already requested by an IP address?

You request image.php (not image.png) and ensure the returned result includes the header Content-Type:image/png so it is processed as an image. You can set the header in php with header("Content-...
davidgo's user avatar
  • 8,296
1 vote

How to check a specific domain request with HTACCESS and add some query string?

MyDomain1.example is my current domain and OtherDomain1.example is one of an external domain so Our Server that belongs to MyDomain1.example check if there is any request to OtherDomain1.example and ...
MrWhite's user avatar
  • 43.1k
1 vote

Website downloading resources Multiple times, unecessarily

Any chance you have a "?" question mark or query string as part of the path to your CSS file? Apparently, some proxies don't cache files with query string parameters (see comments at end of article). ...
Trebor's user avatar
  • 3,300
1 vote

Website downloading resources Multiple times, unecessarily

You need to set your cache policy properly, it sounds like it’s not set at all. So every time someone goes to a page they have to re-download all the same files. Setting the cache for css and js to 30 ...
Alec Sharratt's user avatar

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