
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@commonshost/manifest
Advanced tools
HTTP Server Push Manifest is a configuration format for web servers, CDNs, and web development tools.
Use the API or CLI tool to generate the manifest from static HTML, JS, and CSS files.
Manifest are supported natively by Commons Host. Manifests can be transpiled to many other servers and CDNs.
[
{
get: '/app.html',
push: '/styles/design.css'
},
{
get: '/styles/design.css',
push: [
'/images/logo.svg',
'/images/banner.jpg',
{
url: '/fonts/Oswald-ExtraLight.otf',
priority: 256
},
{
url: '/ads/banner.png',
priority: 1
}
]
}
]
A manifest is a JSON array containing rules. Each rule is a JSON object containing a get
and push
property. These are the trigger and action respectively.
get
The pathname (URL) of a request. If this matches, the trigger fires its push action.
push
One or more resources to push from server to client. A push action has url
and priority
properties. The url
value is a pathname of a local resource. The priority
value is an integer from 1
through 256
and defaults to 16
.
A manifest is an intermediary format which can be transpiled to the configuration syntax of CDN services or web servers.
CDN services: Commons Host (native), Cloudflare, Fastly, Netlify
Web servers: Apache, H2O, NGINX
Platforms: Node.js
Browsers: All modern web browsers support HTTP Server Push. The manifest is used from the server side.
FAQs
Manifest for HTTP Server Push
We found that @commonshost/manifest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.