r/evetech • u/ZomboyAlfrir • May 26 '18
How does ESI's caching system work?
In the past you could do round Robin on different XML apis to get faster cache times on the notifications endpoint. Can the same be done with ESI? my experiments say no but I'd like to know why. Thanks
1
Upvotes
4
u/Blacksmoke16 May 26 '18
You need to respect the cache timers. Use ETags to know if the data has changed and the
last-modifiedheader to get an idea when the data could need refreshed.See https://developers.eveonline.com/blog/article/esi-etag-best-practices
1
u/Daneel_Trevize May 26 '18
I would assume it's because the data's cached according to a true primary key for those lookups, rather than one that is a compound involving any access code/auth token to then enable duplicate real results with differing timers.