Does your server ever answer 304? Test ETag and Last-Modified revalidation in Python
When a crawler comes back to a page it already has, the cheapest answer a server can give is 304 Not Modified with no body. The crawler keeps its copy, your server skips the transfer, and nobody pays for bytes that did not change. Whether that happens depends on two things you control: whether the server sends a validator (an ETag or a Last-Modified header), and whether it actually respects the validator when it comes back. This post is a short, dependency-free Python script that tests both. Fo…
Publicado no Notice. Categoria: Programação.
Leia também
Notícias sobre o mesmo assunto em outras fontes
SegurançaThe Hacker News8 Malicious PyPI Packages Use Python Dependencies as Keys to Unlock Hidden Malware
- SegurançaBleepingComputer
Q-Dir and DesktopOK Windows utilities compromised to push Python RAT