Ability to check / set last-modified / etag http headers

Issue #107 new
Nicolas Dietrich
created an issue

It'd be great if piston were able to set / check last-modified or etag http headers to shortcut requests, such as django's //conditional view processing//.

As long as such a thing doesn't exist in piston: what would be the right place to step in?

Comments (2)

  1. Michael Mior

    The condition decorator is only helpful if your function returns an HttpResponse object. Otherwise, the decorator will fail when it tries to set the Last-Modified or ETag headers.

  2. Log in to comment