2 ms·
I was planning to implement that a while ago, but I ran into a MASSIVE blocker on that. It turns out Cloudflare - the CDN I use for a bunch of my projects (and
by simonw 5y ago
I was planning to implement that a while ago, but I ran into a MASSIVE blocker on that.
It turns out Cloudflare - the CDN I use for a bunch of my projects (and often recommend to others) - ignores the "Vary: Accept" HTTP header in most cases!
This means you can't safely put a URL that varies on Accept behind a Cloudflare cache - because there's a risk that the cached copy will be stored in an unexpected format, in a way that affects future traffic.
I'm really annoyed about this.
Notes on that here: https://github.com/simonw/datasette/issues/1534 https://github.com/simonw/datasette/issues/1534