New issue
Advanced search Search tips

Issue 667632 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Make the stdout cacheable

Project Member Reported by tansell@chromium.org, Nov 22 2016

Issue description

The stdout output is frequently *very large* (it can be megabytes in some cases). It is currently sent with the following headers;
 * cache-control:no-cache, must-revalidate
 * date:Tue, 22 Nov 2016 05:22:28 GMT
 * expires:Fri, 01 Jan 1990 00:00:00 GMT
 * pragma:no-cache

Which forces the browser to fetch it every time. 

Once it the task has complete, this output should *never* change. Hence it is very cacheable.

One solution to this is using ETags. By providing an ETag which is a hash of the content we can get caching behaviour (but the browser still needs to check each time).
-------
> The ETag field here refers to some state identifier for the returned 
> document. Later, a browser can specify that same identifier via If-
> None-Match and the server can decide to say that the document has not 
> changed instead of sending the document again.
-------

 
Cc: mar...@chromium.org
Status: WontFix (was: Assigned)
Since the stdout endpoint uses https://cloud.google.com/appengine/docs/python/tools/protorpc/remote/, I don't believe there is an easy way to enable ETags.

Sign in to add a comment