# Is there a way to tell when ESI cache was refreshed?

**URL:** <https://forums.eveonline.com/t/is-there-a-way-to-tell-when-esi-cache-was-refreshed/79759>\
**Category:** Third Party Developers\
**Tags:** esi\
**Created:** [May 31, 2018, 1:56pm UTC](https://forums.eveonline.com/t/is-there-a-way-to-tell-when-esi-cache-was-refreshed/79759 "2018-05-31T13:56:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piotr\_Leusten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/piotr_leusten/32/169358_2.png) [@Piotr\_Leusten](https://forums.eveonline.com/u/Piotr_Leusten)\
**Post date:** [May 31, 2018, 1:56pm UTC](https://forums.eveonline.com/t/is-there-a-way-to-tell-when-esi-cache-was-refreshed/79759/1 "2018-05-31T13:56:08Z")

</div>

I apologize if this has been addressed before, but I’ve looked and can’t find an answer.

I know, for instance, that the ESI market data has a five-minute cache on it. Is there any way to tell just exactly WHEN the cache was last refreshed?

I don’t see anything in the response header, and I don’t really want to write a script that hits the endpoint every 10 seconds for five minutes so I can see when the data changes.

I’m talking about data that is so commonly requested that the cache reliably refreshes every five minutes. I’m trying to answer the question “does it refresh on the hour, 1 minute after, 2 minutes after, etc.”

Thanks!

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [May 31, 2018, 2:09pm UTC](https://forums.eveonline.com/t/is-there-a-way-to-tell-when-esi-cache-was-refreshed/79759/2 "2018-05-31T14:09:24Z")

</div>

[https://developers.eveonline.com/blog/article/esi-etag-best-practices](https://developers.eveonline.com/blog/article/esi-etag-best-practices)

Along with the `Last-Modified` header can give you a good indication.

---

<div class="post-metadata">

**Author:** ![EveDataRules](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/evedatarules/32/52946_2.png) [@EveDataRules](https://forums.eveonline.com/u/EveDataRules)\
**Post date:** [May 31, 2018, 2:48pm UTC](https://forums.eveonline.com/t/is-there-a-way-to-tell-when-esi-cache-was-refreshed/79759/3 "2018-05-31T14:48:37Z")

</div>

CacheUntil?

---

<div class="post-metadata">

**Author:** ![Piotr\_Leusten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/piotr_leusten/32/169358_2.png) [@Piotr\_Leusten](https://forums.eveonline.com/u/Piotr_Leusten)\
**Post date:** [May 31, 2018, 2:58pm UTC](https://forums.eveonline.com/t/is-there-a-way-to-tell-when-esi-cache-was-refreshed/79759/4 "2018-05-31T14:58:30Z")

</div>

Thanks. That’s what I was looking for.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [August 29, 2018, 2:58pm UTC](https://forums.eveonline.com/t/is-there-a-way-to-tell-when-esi-cache-was-refreshed/79759/5 "2018-08-29T14:58:32Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
