Bug 140312

Summary: Cache-control should be set only on api/runs
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: WebKit WebsiteAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fixes the bug kling: review+

Description Ryosuke Niwa 2015-01-09 14:32:41 PST
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.
Comment 1 Ryosuke Niwa 2015-01-09 14:37:16 PST
Created attachment 244372 [details]
Fixes the bug
Comment 2 Andreas Kling 2015-01-09 14:38:10 PST
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.
Comment 3 Ryosuke Niwa 2015-01-09 14:39:30 PST
Committed r178208: <http://trac.webkit.org/changeset/178208>