If-Modified-Since still returns data

#1 - Sept. 3, 2011, 5:25 p.m.
Blizzard Post
Trying to play nice with the API, I send a "If-Modified-Since" header with my requests. I expect a 304 response saying the data has not been modified. Instead I get a 200 and it still returns json data.

This is with the Item data API. I've been testing with 2776 (Gold ore)

Does this still count against the daily limit since its returning data, or does it count as being good because I sent a "If-Modified-Since" header?
Forum Avatar
Web & Mobile Team
#5 - Sept. 6, 2011, 5:50 p.m.
Blizzard Post
Trying to play nice with the API, I send a "If-Modified-Since" header with my requests. I expect a 304 response saying the data has not been modified. Instead I get a 200 and it still returns json data.

This is with the Item data API. I've been testing with 2776 (Gold ore)

Does this still count against the daily limit since its returning data, or does it count as being good because I sent a "If-Modified-Since" header?


This doesn't work with items as the data will always be the same.
Forum Avatar
Web & Mobile Team
#9 - Sept. 6, 2011, 11:22 p.m.
Blizzard Post
09/06/2011 01:44 PMPosted by Gandros
Accept when it's NOT the same because you changed the item in a patch. Should people just assume the item hasn't changed and manually force a recheck after patches? ie. keep a cache and clear the cache after patches.


Haha, ok. Practically, yes, after there is a patch there is some amount of data mining assumed to validate the information you have.