Skip to content

Instantly share code, notes, and snippets.

@hunterloftis
Created February 22, 2014 04:44
function *cache(next) {
this.set('ETag', '123');
if (this.fresh) {
this.status = 304;
return;
}
yield next;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment