fetch does not allow caching requests with a null client #1749
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What problem are you trying to solve?
The FedCM spec (https://fedidcg.github.io/FedCM/) makes a number of fetch requests with a null client, such as https://fedidcg.github.io/FedCM/#fetch-config-file. But fetch does not support caching requests with a null client because the cache partition is null (https://fetch.spec.whatwg.org/#network-partition-keys via https://fetch.spec.whatwg.org/#http-cache-partitions). Because these files change rarely, it is desirable to be able to cache them if requested by the server using standard HTTP headers
What solutions exist today?
Only solution today is to cache them in the caller of fetch, which is a lot of complexity to duplicate what the HTTP cache does today
How would you solve it?
Probably one of:
Anything else?
@domfarolino suggested not using the "reserved client" for this purpose because it's meant to be used for navigation requests
The text was updated successfully, but these errors were encountered: