Releases: GoogleChromeLabs/sw-toolbox
3.6.1
3.6.0
What's New?
TypeScript Typings
Courtesy of @tusharmath, there is now a index.d.ts
file published as part of the npm
package.
3.5.0
What's New?
maxAgeSeconds
and Fresh Responses
The 3.5.0
release brings with it a small change to how responses are retrieved from caches that have age-based expiration enabled, i.e. those that use the maxAgeSeconds
parameter.
Previously, a response in such a cache would be considered valid, even if the resource was added to the cache longer than maxAgeSeconds
seconds ago.
As of 3.5.0
, the Date
header of the cached response will be checked prior to it being used. If the Date
header is present, and if the value corresponds to an time in the past more than maxAgeSeconds
, then the response will not be considered valid, and the fallback behavior (usually, retrieving a new response from the network) will be used. If the Date
header is not present, or if the response is determined to be "fresh" based on its age, the cached response will be used to satisfy the request.
Documentation & README Fixes
This release also includes a number of documentation-related fixes.
PRs Since Previous Release
- Enhance the README.
- Fix link typo in README
- Explicitly check the Date: header of a cached response when maxAge is set
- Test fixes
- Update link in comment
Thanks
Thanks to @corburn and @DavidScales for their contributions!
3.4.0
What's New?
The 3.4.0
release brings with it a few bug fixes, as well as a change to the JavaScript minification and source-map generation process.
Bugs Fixed
- Default route doesn't check request protocol, picks up chrome-extension://
- Is source map working properly?
Significant PRs Since Previous Release
- Separate pure and side-effecting code
- fix broken / out-of-date links, tidy up README
- Use uglify instead of minifify and fix up sourcemap generation
- Adds a files field to package.json
- Refactors the tests of cache expiration options.
Thanks
3.3.0
What's New?
The 3.3.0
release features a number of improvements to the project's build, testing, and documentation process.
There are no meaningful changes to the developer-facing interface.