
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
github.com/cramaker/weasel
A simple frontend (App Engine app) that serves content from a Google Cloud Storage (GCS) bucket, while allowing for:
The design is simple. Suppose you have a static website www.example.com, served directly from a GCS gs://www.example.com.
A very simplified picture of the serving path can be shown as follows.
+-----+ GET http://www.example.com/dir/index.html
| GCS | <-----------------------------------------+ visitor
+-----+ :-/
Weasel enhancement consists of modifying the serving path to:
+-----+ (2) GET gs://www.example.com/dir/index.html
| GCS | <------------------------------+--------+
+-----+ | yummy |
| weasel |
+--------+
↑ |
(1) | | (3)
GET https://www.example.com/dir/ | ↓ Link: <asset>; rel=preload
visitor
:-)
A visitor requests the website page. Note that /index.html is now optional. Due to GCS restrictions, such suffixes were previously required for sub-folders, but with this approach they no longer need to be specified. Also, requests can (and will) be made over HTTPS.
Weasel fetches the object content from the original GCS bucket and caches it locally. This step is necessary only if the object hasn't been cached already or the cache has expired. Cache expiration and invalidation is based on GCS object cache-control header settings.
Weasel responds with the GCS object contents. Note that we can optionally
push additional assets related to the
requested file by using Link: <asset>; rel=preload
header supported
by GFE.
Apache License 2.0.
This is not an official Google product.
FAQs
Unknown package
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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.