Google implements backward-forward cache in Chrome 79 Canary

Google engineers revealed in February 2019 that they were working on a new feature in Chrome that would speed up the backward and forward browsing behavior of the browser.

Google wanted to improve the performance of back and forward operations in the company’s Chrome web browser and designed a cache that would keep pages in memory so that they could be displayed more quickly in the browser when users activated the back or forward buttons.

The feature had not been implemented in Chrome at that time, not even in Chromium or Chrome Canary. A recent update of Google Chrome Canary introduced a new flag in the browser that controls the caching feature; it is disabled by default but may be enabled by users. The feature will become available on all supported operating systems that Chrome is available on with the exception of Apple iOS.

chrome back forward cache improvement

Google notes that the flag has been implemented mainly for development purposes and that users who don’t work on the feature should not enable it because it could break various functionality.

Back-forward cache

Enables back-forward cache. NOTE: this feature is highly experimental and will lead to various breakages, up to and including user data loss. Do not enable unless you work on this feature – Mac, Windows, Linux, Chrome OS, Android

We did not notice any breakage during tests but your mileage may vary especially if you work with forms or other interactive content in Chrome and use the functionality.

Here is how you enable the cache:

  1. Make sure that you run at least Chrome 79 (Canary currently).
  2. Load chrome://flags/ in the browser’s address bar.
  3. Search for “forward”.
  4. Set the flag Back-forward cache to Enabled.
  5. Restart Google Chrome.

Google Chrome will load pages from a memory cache once enabled when a user activates back or forward buttons or functionality in the browser which may speed up the performance of the process by up to 19% according to Google.

Chrome users need to be aware that the browser will load the page from memory (cache) and not from the site; this may lead to freshness issues if site content changed in the meantime. The only option at this point is to reload the page to get the updated content.

Chrome is not the only browser that uses a cache to speed up back and forward navigation. Both Firefox and Safari use similar techniques to speed up these operations in the respective browsers.

The new cache will impact Chrome’s memory usage as more data needs to be stored in memory. It is too early to tell by how much the browser’s memory usage will increase once a stable version of the feature lands in Chrome.

Now You: Do you mind more memory usage if features speed up the browser? (via Techdows)

Ghacks needs you. You can find out how to support us here ( or support the site directly by becoming a Patreon ( Thank you for being a Ghacks reader. The post Google implements backward-forward cache in Chrome 79 Canary appeared first on gHacks Technology News.

Source link

Leave a Reply

Do NOT follow this link or you will be banned from the site!