Some JSON APIs such as api/analysis-tasks can get outdated pretty quickly as they could be modified by the user on demand. Since the only JSON that takes a long time to generate is ones returned by api/runs, just set cache-control in that script instead.
Created attachment 244372 [details] Fixes the bug
Comment on attachment 244372 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=244372&action=review r=me > Websites/perf.webkit.org/public/api/runs.php:18 > +// FIXME: We should support revalication as well as caching results in the server side. Typo, revalidation.
Committed r178208: <http://trac.webkit.org/changeset/178208>