Re:Cache your CORS
by giancarlostoro on Tuesday September 20, 2022 @08:36AM
(#32910818)
I feel like this is overkill when you have something like OPTIONS which is very minimalist in its response. Unless I'm missing some obvious drawback with calling OPTIONS?
[ Parent
| on HN ]
Well, you double the latency for every. single. request.
Re:Cache your CORS
by tomjakubowski on Tuesday September 20, 2022 @05:47PM
(#32918235)
CORS does not double latency for every single request. It adds the additional overhead of a separate OPTIONS request for every single request. Unless the responses are as trivial to compute/serve as OPTIONS responses are, that will be way less than a doubling in latency.