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

Not consistently using prefetch cache #85

Open
dpatz opened this issue Aug 27, 2020 · 2 comments
Open

Not consistently using prefetch cache #85

dpatz opened this issue Aug 27, 2020 · 2 comments

Comments

@dpatz
Copy link

dpatz commented Aug 27, 2020

I set up instant.page on https://up.codes and it's only working intermittently on Chrome (FF is fine). Here's a video of what I'm experiencing. It seems like it only uses the prefetch cache if the link is in the process of being prefetched when it is clicked. I've tried matching the Cache-Control headers on instant.page's website but that didn't help.

Any ideas on how I can make it work more consistently?

@Garrett-R
Copy link

Note: this page no longer has instant.page on it.

@dieulot
Copy link
Member

dieulot commented Jun 28, 2022

Two things are conflicting with Chrome's prefetch cache in the response headers (as seen on https://up.codes/codes/nebraska):

  1. Cache-Control with no-store.
  2. Vary: Cookie coupled with Set-Cookie: session=… that sets a different cookie on every page request.

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

No branches or pull requests

3 participants