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

rjw57 / tawhiri
27%
master: 1%

Build:
Build:
LAST BUILD BRANCH: add-etag
DEFAULT BRANCH: master
Repo Added 24 Oct 2014 09:56AM UTC
Files 7
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

LAST BUILD ON BRANCH add-etag
branch: add-etag
CHANGE BRANCH
x
Reset
  • add-etag
  • add-docs-link-to-readme
  • add-ui-to-development-webserver
  • api-configuration
  • api-refactor
  • downloader-py3-syntax-fix
  • fix-rtd-link-in-readme
  • fix-stupid-api-mistake
  • in-progress-api-refactor-2
  • requirements-specific-versions
  • some-basic-tests
  • travis-ci-support
  • ui-refactor-issue-82
  • v2-playground

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

Relevant lines Covered
Build:
Build:
900 RELEVANT LINES 240 COVERED LINES
0.53 HITS PER LINE
Source Files on add-etag
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
47 add-etag 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. Sho... push 21 Nov 2014 04:38PM UTC rjw57 travis-ci pending completion  
See All Builds (41)
  • Repo 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

© 2025 Coveralls, Inc