autonomouslogic / eve-esi-proxy

An HTTP proxy for the EVE Online ESI API
MIT No Attribution
1 stars 1 forks source link

Add cache hit/miss header #17

Closed kennethjor closed 9 months ago

kennethjor commented 9 months ago

Add a header X-ESI-Proxy-Cache-Status with value HIT or MISS to indicate if the request was served from the proxy's own cache.

Loosely based on Cloudflare's CF-Cache-Status header.

kennethjor commented 9 months ago

Some example code of how to detect if it was a cache hit or not: https://github.com/autonomouslogic/eve-ref/blob/main/src/main/java/com/autonomouslogic/everef/http/LoggingInterceptor.java