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

gwicke / restbase / 646
93%
master: 92%

Build:
Build:
LAST BUILD BRANCH: update_security_headers
DEFAULT BRANCH: master
Ran 16 Jun 2016 11:31PM UTC
Jobs 5
Files 19
Run time 1min
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
646

push

travis-ci

gwicke
Create a simple content-type enforcement filter

This patch adds a simple content-type check & enforcement filter, which

1) compares the returned content-type with the first entry of the `produces`
   array in the route spec, and
2) repeats the request with `no-cache` header set if:
    a) the profile parameter does not match, and
    b) either the path (without version) differs, or the expected version is
    higher than the returned version, and
    c) the page has not been re-rendered within the last two minutes.

The patch also enables this simple filter for Parsoid HTML end points. While
we'll want to use pagebundle2pagebundle end points for Parsoid in the future,
this filter will at least get us started, and will also implicitly upgrade
older revisions to the latest HTML. The load added by this is expected to be
small, as most requests are for latest revisions, which tend to be stored in
the latest content version already.

1206 of 1311 relevant lines covered (91.99%)

113.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 646.1 16 Jun 2016 11:33PM UTC 0
91.99
Travis Job 646.1
2 646.2 16 Jun 2016 11:32PM UTC 0
91.99
Travis Job 646.2
3 646.3 16 Jun 2016 11:33PM UTC 0
91.99
Travis Job 646.3
4 646.4 16 Jun 2016 11:33PM UTC 0
91.99
Travis Job 646.4
5 646.5 16 Jun 2016 11:31PM UTC 0
91.99
Travis Job 646.5
Source Files on build 646
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #646
  • 4d94e16c on github
  • Prev Build on content_type_enforcement (#645)
  • Next Build on content_type_enforcement (#647)
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