instant.page icon indicating copy to clipboard operation
instant.page copied to clipboard

Not consistently using prefetch cache

Open dpatz opened this issue 5 years ago • 2 comments

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?

dpatz avatar Aug 27 '20 23:08 dpatz

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

Garrett-R avatar Jun 27 '22 20:06 Garrett-R

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.

dieulot avatar Jun 28 '22 20:06 dieulot