3 ms·
Etags make it really easy though, by storing not a hash, but arbitrary text. Of course arbitrary text is much more flexible. Even without etags you could devis
by jchw 7y ago
Etags make it really easy though, by storing not a hash, but arbitrary text. Of course arbitrary text is much more flexible.
Even without etags you could devise a similar scheme probably, if you can get a browser to cache a request indefinitely. Then no request would need to be made to get the “cookie,” though JS would be needed to make use of it.
- pornel 7y agoSame tracking is possible by embedding data in last-modified/if-modified-since, or location of cacheable redirects. There are also other variations that just use resource bodies, e.g. cache HTML that opens an iframe with a unique URL, JS that contains constants storing data, CSS that opens user-specific URLs via imports, etc. For tracking you just need any unique identifier, so (lack of) flexibility doesn't do much. You can even track users with HSTS cache that caches only 1 bit per domain.