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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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-...
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 ...
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).
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
request × 11web-crawlers × 2
server × 2
http × 2
user-agent × 2
google × 1
htaccess × 1
redirects × 1
apache2 × 1
performance × 1
ip-address × 1
page-speed × 1
webserver × 1
cookie × 1
bing × 1
error × 1
url-parameters × 1
referrer × 1
api × 1
download × 1
data × 1
python × 1
resources × 1
image-hosting × 1
access-control × 1