Commit 92efd532 by Clinton Blackburn Committed by Clinton Blackburn

Added Vary header to credentials /static/ path

This header will provide more information to downstream caches so they know which headers to consider when determining a match. This is especially important to ensure browsers do not cache incorrect CORS headers when switching between sites/tenants.

DEVOPS-5807
parent 054e0705
......@@ -54,6 +54,10 @@ server {
root {{ CREDENTIALS_STATIC_ROOT }};
add_header Cache-Control "max-age=31536000";
add_header 'Access-Control-Allow-Origin' $cors_origin;
# Inform downstream caches to take certain headers into account when reading/writing to cache.
add_header 'Vary' 'Accept-Encoding,Origin';
try_files /$file =404;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment