gateway: CORS and Cache-Control: only-if-cached
#400
Labels
need/triage
Needs initial labeling and prioritization
Cache-Control: only-if-cached
#400
Without this you cannot make a CORS request for content with the
Cache-Controle
header.For example, this request to check if the gateway has the cid in cache fails (from a different origin):
A server should be able to fix this by setting the header
This should probably be mentioned here: https://specs.ipfs.tech/http-gateways/path-gateway/#cache-control-request-header.
I believe @lidel mentioned setting this header alone might not be enough, but from some local testing, it seems to work fine(?)
The text was updated successfully, but these errors were encountered: