3 ms·
You may control the client, but do you control the client library? If you want to get the most out of something like, say, Python's requests, following these c
by diminoten 8y ago
You may control the client, but do you control the client library? If you want to get the most out of something like, say, Python's requests, following these conventions are your best bet.
- vfaronov 8y agoCase in point: CacheControl [1]. Plug it in and you get flexible caching — interoperable with NGINX, the browser, and everybody else — for very little. But it relies on the protocol. If you respond to GET /stars/98765 with 200 (OK) and an “under construction” placeholder, it’s going to get confused. [1] https://github.com/ionrock/cachecontrol https://github.com/ionrock/cachecontrol