These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Crest, cached until values?

Author
Salgare
Center for Advanced Studies
Gallente Federation
#1 - 2016-07-07 01:43:42 UTC
The xml api always returns a cached until element right?

Where can I find this information in crest responses. I'm not seeing it in the ContactList structure.
salacious necrosis
Garoun Investment Bank
Gallente Federation
#2 - 2016-07-07 02:20:27 UTC
You need to look in the HTTP return header. Here's an example:

$ curl -I https://crest.eveonline.com/market/10000002/orders/all/
HTTP/1.1 200 OK
Server: nginx/1.8.1
Date: Thu, 07 Jul 2016 02:18:39 GMT
Content-Type: application/vnd.ccp.eve.MarketOrderCollectionSlim-v1+json; charset=utf-8
Content-Length: 6345788
Connection: keep-alive
Vary: Accept-Encoding
Access-Control-Allow-Headers: AUTHORIZATION, X-REQUESTED-WITH, CONTENT-TYPE, ACCEPT
Access-Control-Max-Age: 1728000
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, PUT, POST, DELETE, HEAD, OPTIONS
Access-Control: allow <*>
Access-Control-Expose-Header: CONTENT-TYPE
Cache-Control: max-age=300
X-Cache-Status: EXPIRED

The key line is this one:

Cache-Control: max-age=300

which is the cache time in seconds (e.g. 5 minutes).

Use EveKit ! - Tools for EVE Online 3rd party development

Salgare
Center for Advanced Studies
Gallente Federation
#3 - 2016-07-07 02:27:21 UTC
perfect! thank you so much.