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

Unleash / unleash / 9096243674
87%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 15 May 2024 01:13PM UTC
Jobs 1
Files 625
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

15 May 2024 01:07PM UTC coverage: 87.702% (-0.03%) from 87.728%
9096243674

push

github

web-flow
fix: Add appropriate response headers to SPA entry point HTML response (#6992)


## About the changes

Current state, when returning the HTML entry point from the server,
there are no headers attached. We encountered an issue with a deployment
and this had an impact for us.

A brief description:

1. We deployed the most recent version. Noticed an unrelated issue.
2. Users tried to use the most recent version and due to their client
cache, requested assets that did not exist in the newest version.
3. Our cache layer cached the assets that were not there with the HTML
response. It had to infer the type based on the filename because there
was no attached `Content-Type` header. This cache was very sticky.
4. After rolling back we saw the HTML response (from the cache) instead
of the appropriate response from the upstream Unleash application.

This PR does a few things.

1. When responding with the HTML entry point, it adds header
(`Content-Type: text/html`).
2. When the client is requesting an asset (a path that ends with an
extension), it also instructs the resource not to be cached
(`Cache-Control: no-cache`) and returns a 404. This will prevent misses
from getting cached.


## Discussion points

To me, there doesn't seem to be a lot of test infra on serving the SPA
application. If that is an error, please indicate where that is and an
appropriate test can be added.

2629 of 3426 branches covered (76.74%)

3 of 7 new or added lines in 1 file covered. (42.86%)

11 existing lines in 4 files now uncovered.

13129 of 14970 relevant lines covered (87.7%)

669.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9096243674.1 15 May 2024 01:12PM UTC 0
87.7
GitHub Action Run
Source Files on build 9096243674
Detailed source file information is not available for this build.
  • Back to Repo
  • 9903cf10 on github
  • Prev Build on main (#9063056264)
  • Next Build on main (#9110111583)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc