Why Nostr? What is Njump?
2025-03-22 12:00:07

Anthony Accioly on Nostr: GM folks. Quick question for folks who understand HTTP caching on reverse proxies ...

GM folks. Quick question for folks who understand HTTP caching on reverse proxies like Squid or Cloudflare. If I have a GET REST endpoint responding with 200 OK and the following headers:

Cache-Control: public, max-age=3600  
ETag: "123-a"

The proxy should cache and serve the response without hitting the underlying server more than once for the first hour, then send a request with If-Match: "123-a" when the cache goes stale, right? Is there any reason why it wouldn’t?

#gm #asknostr #devstr #http #caching #etag #rest #tech
Author Public Key
npub1a6we08n7zsv2na689whc9hykpq4q6sj3kaauk9c2dm8vj0adlajq7w0tyc