Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari iOS 15.5 Not Using Prefetch Cache with LinkPrefetch Enabled #265

Open
az8n opened this issue Jul 14, 2022 · 2 comments
Open

Safari iOS 15.5 Not Using Prefetch Cache with LinkPrefetch Enabled #265

az8n opened this issue Jul 14, 2022 · 2 comments

Comments

@az8n
Copy link

az8n commented Jul 14, 2022

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

But the content was fetched again:
Screen Shot 2022-07-14 at 11 49 58 AM

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

@josh-tt
Copy link

josh-tt commented Sep 3, 2022

I see the same thing on desktop safari 15.4 as well with LinkPrefetch experiment enabled. Furthermore, the specs say safari >12 without polyfills. Not sure how that's possible, perhaps I'm missing something. Found Quicklinks while looking for a polyfill solution for prefetch in safari.

UPDATE: Just tried installation on my web server and phone and appears to be works fine, so perhaps it's just an issue with the demo page.

@onlinebizsoft
Copy link

@XhmikosR : can you confirm if this libraries works for latest Sarafi by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants