Bug 1872381 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Seems like using the Offline simulation from the netmonitor's throttling menu completely prevents the page from loading, whereas the File > Offline mode still allows the page to load and fetch cached resources via service workers.

Can you share the application you were testing in offline mode? So that we can really check what should happen in this case.
Seems like using the Offline simulation from the netmonitor's throttling menu completely prevents the page from loading, whereas the File > Offline mode still allows the page to load and fetch cached resources via service workers.

Can you share the application you were testing in offline mode? So that we can really check what should happen in this case.

For the record, disabling the cache via the netmonitor does the following:
```javascript
  _setCacheDisabled(disabled) {
    const value = disabled
      ? Ci.nsIRequest.LOAD_BYPASS_CACHE
      : Ci.nsIRequest.LOAD_NORMAL;
    if (this._browsingContext.defaultLoadFlags != value) {
      this._browsingContext.defaultLoadFlags = value;
    }
  }
```

and toggling File > Work Offline toggles `Services.io.offline`. Maybe there is a conflict between those 2 settings.

Back to Bug 1872381 Comment 1