Closed Bug 1539236 Opened 7 years ago Closed 7 years ago

Pocket images are being fetched from the network and not the cache

Categories

(Firefox :: New Tab Page, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mconley, Unassigned)

References

Details

Attachments

(1 file)

When profiling, I noticed that we send network requests to get the Pocket images in about:home every time the page loads.

Repeated reloads, even with the same set of images, causes the same network requests, every time.

We can probably save some bandwidth for our users (and ourselves!) by reading these images from the network cache by default.

Here's a screencast demonstrating the issue: https://www.screencast.com/t/oGoNgwpJ

I am seeing the network requests when refreshing the page but opening new tabs and clicking the home button do not trigger new requests. Is this the expected behavior?

Flags: needinfo?(mconley)

And on a browser restart it seems that we hit the cache.

(In reply to Andrei Oprea [:andreio] from comment #1)

I am seeing the network requests when refreshing the page but opening new tabs and clicking the home button do not trigger new requests. Is this the expected behavior?

The preloading of about:newtab we do might be confusing things at least for the tab-opening case - you can disable that via browser.newtab.preload.

If we're hitting the cache on start-up, and on opening tabs / windows, and when hitting "Home", then this is probably an INVALID bug. It probably makes sense to hit the network if the user hits Reload.

Flags: needinfo?(mconley)

Tested:

  • opening tabs
  • windows
  • home button
  • startup

With preload disabled. No network calls.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: