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

cuspaceflight / tawhiri / 28
66%

Build:
DEFAULT BRANCH: master
Ran 21 Nov 2014 04:43PM UTC
Jobs 2
Files 7
Run time 14min
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
28

Pull #105

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.
Pull Request #105: api: add ETag support

240 of 900 relevant lines covered (26.67%)

0.53 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
22
100.0
tawhiri/api.py
Jobs
ID Job ID Ran Files Coverage
1 28.1 21 Nov 2014 04:56PM UTC 0
26.67
Travis Job 28.1
2 28.2 21 Nov 2014 04:57PM UTC 0
26.67
Travis Job 28.2
Source Files on build 28
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #28
  • Pull Request #105
  • PR Base - master (#26)
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