Closed erezrokah closed 4 years ago
This allows better caching of preflight requests (https://fetch.spec.whatwg.org/#http-access-control-max-age). Not setting it defaults to 5 seconds. GitHub and Bitbucket use a value of 86400 seconds, while GitLab uses 7200. These values correspond with the maximum values for Firefox and Chrome: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age
86400
7200
This allows better caching of preflight requests (https://fetch.spec.whatwg.org/#http-access-control-max-age). Not setting it defaults to 5 seconds. GitHub and Bitbucket use a value of
86400
seconds, while GitLab uses7200
. These values correspond with the maximum values for Firefox and Chrome: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age