Setting for Cache-Control
to allow preflight requests to be cached in CDNs
#251
Labels
enhancement
New feature or request
Prerequisites
🚀 Feature Proposal
Add a
cacheContol
option to the settings which will setCache-Contol
header on preflight responses.A number value would probably set
Cache-Control: max-age=${cacheContol}
, and a string value would setCache-Control: ${cacheContol}
(fully sepecify the header contents), and otherwise the header would not be set.Motivation
There is a
maxAge
option for theAccess-Control-Max-Age
header. This typically allows preflight requests to be cached in the browser, however typically not by a CDN.Example
No response
The text was updated successfully, but these errors were encountered: