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

amiv-eth / amivapi / 718
94%

Build:
DEFAULT BRANCH: master
Ran 02 Jun 2019 09:24PM UTC
Jobs 3
Files 89
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
718

push

travis-ci

web-flow
Allow proper caching with `If-Modified-Since`. (#395)

There is a subtle difference between `no-store` and `no-cache`.

`no-store`: Never return from cache, always request new. (Especially problematic for images, which are always re-loaded.) **This is what we currently have**.

`no-cache`: Don't return from cache by default, but first re-validate with the server, in our case using the `If-Modified-Since` header, which browsers use automatically, as eve includes `Last-Modified` headers in all responses. **This is what we actually want.**

Thus, with this small change, the api should cache in the way we want. Stale results from cache will never be returned without a request, and data is only transmitted if anything has changed.

More info: https://www.keycdn.com/blog/http-cache-headers

Note: Having both `no-cache` and `must-revalidate` doesn't actually do anything, as each on it's own would be enough for what we want, but for compatibility its probably best to keep both.

Closes #389

4036 of 4269 relevant lines covered (94.54%)

1.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 718.1 (TOXENV=py35) 02 Jun 2019 09:26PM UTC 0
94.73
Travis Job 718.1
2 718.2 (TOXENV=py36) 02 Jun 2019 09:26PM UTC 0
94.54
Travis Job 718.2
3 718.3 (TOXENV=flake8) 02 Jun 2019 09:24PM UTC 0
Travis Job 718.3
Source Files on build 718
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #718
  • e31dbbba on github
  • Prev Build on master (#716)
  • Next Build on master (#722)
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