Gathering detailed insights and metrics for hapi-vary-accept
Gathering detailed insights and metrics for hapi-vary-accept
Gathering detailed insights and metrics for hapi-vary-accept
Gathering detailed insights and metrics for hapi-vary-accept
hapi pre-response handler to include Accept in the Vary header
npm install hapi-vary-accept
Typescript
Module System
Node Version
NPM Version
JavaScript (93.84%)
Shell (6.16%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
1,508 Commits
2 Watchers
11 Branches
4 Contributors
Updated on Mar 17, 2025
Latest Version
3.0.3
Package Id
hapi-vary-accept@3.0.3
Unpacked Size
12.02 kB
Size
5.25 kB
File Count
14
NPM Version
9.6.7
Node Version
18.17.1
Published on
Sep 23, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
hapi pre-response handler to include Accept
in the Vary
header
Google Chrome caches only the last response for any endpoint, regardless of
content-type
, which results in rendering json data instead of the rendered
page based on the html representation. These values are cached even with the
Cache-Control
header set to no-cache
in order to optimize operations like
navigating back or duplicating a tab.
While normally unnecessary because of configuring the headers to prevent
caching,including Accept
in the Vary
header does technically further inform
a client that a single endpoint responds with different responses based on the
Accept
header of the request.
:warning: This plugin does not yet support hapi v17
1$ npm install hapi-vary-accept --save
1$ npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More