Title: Service Worker: Hash Mismatch · Issue #23613 · angular/angular · GitHub
Open Graph Title: Service Worker: Hash Mismatch · Issue #23613 · angular/angular
X Title: Service Worker: Hash Mismatch · Issue #23613 · angular/angular
Description: I'd like to use this to start a discussion based upon a topic I talked about with @gkalpak at ng-conf 2018. As mentioned in #21288, the service worker implementation checkes the hashes of the cached files and if they don't match, it just...
Open Graph Description: I'd like to use this to start a discussion based upon a topic I talked about with @gkalpak at ng-conf 2018. As mentioned in #21288, the service worker implementation checkes the hashes of the cache...
X Description: I'd like to use this to start a discussion based upon a topic I talked about with @gkalpak at ng-conf 2018. As mentioned in #21288, the service worker implementation checkes the hashes of the c...
Opengraph URL: https://github.com/angular/angular/issues/23613
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Service Worker: Hash Mismatch","articleBody":"I'd like to use this to start a discussion based upon a topic I talked about with @gkalpak at ng-conf 2018.\r\n\r\nAs mentioned in #21288, the service worker implementation checkes the hashes of the cached files and if they don't match, it just serves the data from the network (which is like having no service worker).\r\n\r\nThe problem is that every proxy on the web can manipulate the files downloaded. This is especially the case for mobile providers that are minifying and inlining a lot of stuff on the fly to save bandwith. But also tools like live-server change the index.html (and so they can be used to reproduce this issue).\r\n\r\nAs one of the big use cases for PWAs are areas with low bandwith, this is somehow conflicting.\r\n\r\nPerhaps one way to solve this is to provide an exchangeable HashCheckStrategy. In cases where I as the programmer wants to take the responsiblity for not checking the hashes in order to bypass this issue, I could write sth like this:\r\n\r\n```\r\nexport class BruceWillisHashCheckStrategy implements HashCheckStrategy {\r\n check(currentHash, expectedHash, fileName) {\r\n return true;\r\n }\r\n}\r\n```\r\n","author":{"url":"https://github.com/manfredsteyer","@type":"Person","name":"manfredsteyer"},"datePublished":"2018-04-30T15:51:44Z","url":"https://github.com/angular/angular/issues/23613"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d370f529-480c-848a-658e-74cd554b6f61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C986:2D40DE:3D810E:4E0160:6B0107B9 |
| html-safe-nonce | 9523a18a3ae03662811e175d940b18ea6e85aa59803e127e9083976beafd2da9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTg2OjJENDBERTozRDgxMEU6NEUwMTYwOjZCMDEwN0I5IiwidmlzaXRvcl9pZCI6IjQ4MDUyMTM0MTExNzQ1ODIyMDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b6a97fafb0c32f72e72aee195d8a81ee11a08fdbb6ddc29d290a28cf3b5638ea |
| hovercard-subject-tag | issue:318939946 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/23613/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49a7bdddbb76201dcb24743090da6c5e35369ebd43bf3466c6682aa1922221cf/angular/angular/issues/23613 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49a7bdddbb76201dcb24743090da6c5e35369ebd43bf3466c6682aa1922221cf/angular/angular/issues/23613 |
| og:image:alt | I'd like to use this to start a discussion based upon a topic I talked about with @gkalpak at ng-conf 2018. As mentioned in #21288, the service worker implementation checkes the hashes of the cache... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | manfredsteyer |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width