Deterministic Headers (CORS) for Static Sites
S
Sven Schwyn
Headers are currently undeterministic: Contradicting header values for identical header keys with different, matching request paths are chosen at random (see attachment). It's therefore not possible to e.g. apply different CORS rules or cache max-ages to specific files of a static site.
Use cases may be...
* assets on a static assets site which require stricter CORS rules for legal reasons
* assets on a static assets site which require looser CORS rules to work in embeddable widgets
* or assets which require shorter cache max-ages e.g. because fingerprinting is not possible.
Photo Viewer
View photos in a modal
Log In
S
Sven Schwyn
As for the implementation: A possible way to make headers deterministic might be sorting buttons similar to what's already present for redirects on static sites.