logoalt Hacker News

tsimionescu • today at 7:47 AM • 3 replies • view on HN

The web uses globally shared caches absolutely everywhere, it is extremely dependent on them in fact. How do you think CDNs work? Do you think they keep different caches for different users?

The fact that browsers don't cache data cross-origin is a completely different side of this. The server-side prefix cache used in inference servers is much more similar to a CDN cache, where content cached from userA's request is served to userB if their requests match.


Replies

QuantumNomad_ • today at 8:55 AM

> The server-side prefix cache used in inference servers is much more similar to a CDN cache, where content cached from userA's request is served to userB if their requests match.

But how often does that happen? Is there any advantage to sharing the cache in this way?

Whenever i ask an LLM about something, i don’t think anyone else is likely to have asked the same thing phrased the same way recently enough that even if it was previously in cache it won’t already have been evicted by the time i ask.

➕ show 1 reply
mejutoco • today at 10:06 AM

Agents use the global caches to change behaviour. We can think of it as prompt injection with extra steps.

Browsers do not do that. Or am I misunderstanding?

➕ show 1 reply
taneq • today at 11:44 AM

Maybe I’m slow to catch on, but this seems like something you could exploit in a timing side-channel attack, similar to Spectre, to exfiltrate other clients’ submitted prompts? Not that those are likely to be very interesting, but still…

Edit: Exfiltrate, not exfoliate, lol.