ordhook icon indicating copy to clipboard operation
ordhook copied to clipboard

return max-age for etag responses

Open rafaelcr opened this issue 2 years ago • 2 comments

If these etags are all time based, we could possibly implement very efficient caching with cache-control: max-age=x -- the browser could reliably use its cached data (or cloudflare's) without having to revalidate against the API. You'd want to only do this when the datetime is old enough to avoid bitcoin reorgs.

rafaelcr avatar May 02 '23 16:05 rafaelcr

I like this approach. We should bump up the priority if we can also demonstrate the value of max-age cache control in our Explorer. @janniks thoughts?

chresko avatar Jul 19 '23 16:07 chresko

The cache is already working well, deprioritizing for now.

smcclellan avatar Sep 11 '23 14:09 smcclellan