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

Add options to modify URL and link element #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

twifkak
Copy link

@twifkak twifkak commented Oct 21, 2022

This supports prefetching of other sites without revealing the user's IP or cookies to them, using signed exchanges. Proof-of-concept at https://github.com/google/sxg-rs/tree/main/distributor.

The proof-of-concept uses:

  • instantUrlModifier to modify the URL only on left-click or prefetch, but preserve the original URL for hover (display at the bottom of the browser) and right-click copy
  • instantLinkModifier to add as=document which is necessary to enable the prefetch cache for some specific cases

But I wrote it generically since it may be useful for other use cases.

@dieulot
Copy link
Member

dieulot commented Nov 19, 2022

Thanks!

Right now instant.page’s goal of fitting in a single TCP packet has no tolerance for experimental/flexible options, but I’m planning to make the code base feature-flaggable through a build step in the next couple of months.

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

Successfully merging this pull request may close these issues.

3 participants