Questions tagged [caching]

For questions about caching results of API calls and / or how caching affects user scripts when used on the Stack Exchange sites.

Filter by
Sorted by
Tagged with
16 votes
2 answers
2k views

Why does the API lack (proper) HTTP cache control headers?

I've just read Kevin's answer to Do I need API key to use StackAuth API? and been quite surprised that the API doesn't seem to facilitate proper HTTP caching already: You really shouldn't be ...
Steffen Opel's user avatar
  • 1,380
3 votes
1 answer
129 views

How to check if a given question is changed

What is the fastest way to check if a question is changed using the API calls? For my purpose (a cache), a question is considered changed if: A new comment is added to the question or to any of its ...
systempuntoout's user avatar
3 votes
0 answers
36 views

Buggy HTTP header behavior with the `site` parameter. Improper caching?

In sx.el we are using url-request-extra-headers to pass API requests to Stack Exchange. When performing multiple queries in quick succession, we end up receiving the same JSON response even when the ...
Jonathan Leech-Pepin's user avatar
1 vote
1 answer
38 views

The API /tag stats are notably different from the site totals

Why this discrepancy? --Sep 10 2015 11:26:09 GMT+0530 (IST)-- At that time, the API shows 42010 tags. But the same thing computed on the Stack Overflow tags page is 44496. Is it because of caching?
deostroll's user avatar
  • 111
1 vote
1 answer
73 views

last_activity_date meaning on /questions route

I would like to add a cache layer to my app for questions, answers and comments. The last_activity_date parameter on /questions route seems a valid candidate (probably the only way available) The help ...
systempuntoout's user avatar
0 votes
1 answer
88 views

Why does the /events service sometimes pause for a couple of minutes?

In developing the firehose service, I found that the /events API often "pauses" for a couple of minutes before resuming. Is this a known issue? Specifically, I am polling /events every 10 seconds ...
Greg Hewgill's user avatar
  • 3,883