News for hackers. Stuff that matters.
Re:Cache your CORS by javier2 on Tuesday September 20, 2022 @02:35PM (#32915966)
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.
Re:Cache your CORS by javier2 on Thursday September 22, 2022 @02:39PM (#32942904)
What I mean by latency is the transport latency, even assuming 0ms OPTIONS compute time, you still need twice the round trip time.