GoogleChromeLabs / GoogleChromeLabs/quicklink

Safari iOS 15.5 Not Using Prefetch Cache with LinkPrefetch Enabled

Open
#265 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.3k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
On Safari iOS 15.5 with LinkPrefetch enabled, links are being prefetched but then fetched again after navigation.

**To Reproduce**
1. On Safari iOS 15.5, enable LinkPrefetch in Advanced Safari settings
2. Go to optimized demo https://mini-ecomm-quicklink.glitch.me/
3. After prefetch, click on first link

The prefetch happened:
![Screen Shot 2022-07-14 at 11 49 28 AM](https://user-images.githubusercontent.com/109299687/179024037-8ea0abfa-7b27-4a82-87d8-d44004116f97.png)

But the content was fetched again:
![Screen Shot 2022-07-14 at 11 49 58 AM](https://user-images.githubusercontent.com/109299687/179024043-f5fe3314-b8b1-4987-be22-b2a4b73e5ba0.png)

**Expected behavior**
The prefetch content is served from prefetch cache (faster than fetching the content)

**Version:**
- OS w/ version: iOS 15.5
- Browser w/ version: Safari

**Additional context, screenshots, screencasts**
LinkPrefetch is enabled
![IMG_2076](https://user-images.githubusercontent.com/109299687/179023480-d92f21e9-9ad9-46cc-addb-96992b9b259b.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.