• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rjw57 / tawhiri / 47
27%
master: 1%

Build:
Build:
LAST BUILD BRANCH: add-etag
DEFAULT BRANCH: master
Ran 21 Nov 2014 04:38PM UTC
Jobs 2
Files 7
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
47

push

travis-ci

rjw57
api: add ETag support

Add basic ETag support for the prediction API. On each request, an ETag
is computed by hashing the prediction request with the dataset which
would satisfy it. This ETag is then returned via the ETag header to the
client. Should a server set the If-None-Match header on the incoming
request, it is compared to the computed ETag and, if they match, a 304
response is returned. If ETags match then the prediction is not run and
the client is instructed (via the 304 response) to use the cached
version.

Note that this does not directly help us with the current UI since the
$.ajax() function must have ifModified set explicitly to true to enable
caching support. In that case $.ajax() synthesises a fail. (Quite why
jQuery people can't let the browser sort out its own caching I don't
know.)

It's expected that ETags would be more useful when the predictor is put
behind some sort of caching proxy (e.g. varnish) which understands
ETag/If-None-Match.

33 of 33 new or added lines in 1 file covered. (100.0%)

240 of 900 relevant lines covered (26.67%)

0.53 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
tawhiri/api.py
Jobs
ID Job ID Ran Files Coverage
1 47.1 21 Nov 2014 04:38PM UTC 0
26.67
Travis Job 47.1
2 47.2 21 Nov 2014 04:40PM UTC 0
26.67
Travis Job 47.2
Source Files on build 47
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #47
  • 63f1942c on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc