Closed Bug 1718400 Opened 4 years ago Closed 4 years ago

Cached pages not loading in Offline Mode

Categories

(Core :: Networking: Cache, defect, P3)

Firefox 91
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox94 --- fixed

People

(Reporter: janakaud+mozilla, Unassigned)

Details

(Whiteboard: [necko-triaged])

User Agent: Firefox

Steps to reproduce:

  1. Open a desired page: e.g. https://www.mozilla.org/en-US/firefox/channel/desktop/
  2. Close the browser (complete shutdown).
  3. Open the browser.
  4. Enable Offline Mode (File -> Work Offline).
  5. Try to open the page from step 1.

Additional steps (may not be reproducible, depending on your internet connection latency etc.):
6. Disable Offline Mode.
7. Refresh the page, but immediately stop the reload (e.g. by pressing Esc, ~500ms after the refresh action).
8. Enable Offline Mode.
9. Refresh the page.

Actual results:

5: "Offline Mode" message appears.

9: Cached page copy gets loaded, but only the HTML (no resources, styles, fonts, images etc.)

Expected results:

The page is already cached, so the cached copy - complete with resources - should be loaded in step 5 itself.

Step 9 should load the complete page (resources included), not just the HTML.

Hi,

I'm not entirely sure if it could have every resource cached if you don't let the page fully load before closing it and going "offline".
If you let the page fully load, it should cache it as expected.

Nevertheless, I'm assigning a component in order to get the development team involved in reviewing this.

Thanks!

Status: UNCONFIRMED → NEW
Component: Untriaged → Networking: Cache
Ever confirmed: true
Product: Firefox → Core

Apologies for the confusion! After step 1, I don't close the browser immediately - I wait until all resources get loaded.

For the "additional steps", a more reliable way to reproduce would be to

  1. Disconnect from the internet.
  2. Disable Offline Mode.
  3. Refresh the page - you get the "Unable to connect" error page.
  4. Enable Offline Mode.
  5. Refresh the page. (Base HTML page loads from cache, but without any resources.)
Severity: -- → S4
Priority: -- → P3
Whiteboard: [necko-triaged]

[Tracking Requested - why for this release]:

I can confirm this bug is no longer present in 94.0a1 - with experience from a few weeks' use.

Kudos to whoever that fixed it!

(Can't find a 'Fixed' option for the 'resolution' field, so leaving at default selection 'Invalid')

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.