angular-cn/tools/public_api_guard
Alex Rickabaugh f10f8db5fb fix(service-worker): several misc fixes for corner cases
This commit fixes several issues discovered through use in real apps.

* The sha1() function operated on text content, causing issues for binary-format files.
  A sha1Binary() function which operates on unparsed data now avoids any encoding issues.
* The characters '?' and '+' were not escaped in Glob-to-regex conversion previously, but
  are now.
* URLs from the browser contain the full origin, but were checked against the table of
  hashes from the manifest which only has the path for URLs from the same origin. Now the
  origin is checked and URLs are relativized to the domain root before comparison if
  appropriate.
* ngsw: prefix was missing from data groups, is now added.
* Occasionally servers will return a redirected response for an asset, and caching it could
  cause errors for navigation requests. The SW now handles this by detecting such responses
  and following the redirect manually, to avoid caching a redirected response.
* The request for known assets is now created from scratch from the URL before fetching from
  the network, in order to sanitize it and avoid carrying any special modes or headers that
  might result in opaque responses.
* Debugging log for troubleshooting.
* Avoid creating errors by returning 504 responses on error.
* Fix bug where idle queue doesn't run in some circumstances.
* Add tests for the above.
2017-10-05 13:27:31 -07:00
..
animations build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
common Revert "refactor(core): Change `abstract get` to `readonly` (#19226)" 2017-09-28 13:36:56 -07:00
compiler build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
core Revert "refactor(core): Change `abstract get` to `readonly` (#19226)" 2017-09-28 13:36:56 -07:00
forms Revert "refactor(core): Change `abstract get` to `readonly` (#19226)" 2017-09-28 13:36:56 -07:00
http build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
platform-browser feat(platform-server): add an API to transfer state from server (#19134) 2017-09-21 13:56:13 -07:00
platform-browser-dynamic build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
platform-server feat(platform-server): add an API to transfer state from server (#19134) 2017-09-21 13:56:13 -07:00
platform-webworker build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
platform-webworker-dynamic build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
router build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
service-worker fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00
upgrade build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00