Closed Bug 1352267 Opened 9 years ago Closed 9 years ago

sso.mozilla.com uses uncached 301s

Categories

(Infrastructure & Operations :: SSO: Issues, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Atoll, Assigned: andrew)

Details

Today, sso.mozilla redirects using: RewriteRule ^/place https://mozilla.okta.com/home/mozillacorp_place_1 [R=301,NC,L] 301 will be cached for some random period of time that each browser decides independently. We should specify a Cache-Control header on all 301 redirects that ensures a good user experience. Typically, on a redirect-only virtual server in Webops, we would do: Header always set Cache-Control "max-age=60" for 60 seconds, or =300 seconds, or whatever is best. This helps guide not only clients but also caching load balancers (Zeus, today, and AWS CloudFront/ALB tomorrow) to behave reproducibly. This is not urgent to fix, but should be taken under review as part of the upcoming AWS deployment. You are welcome to resolve this bug whenever you've reviewed it, whether or not action results. Cheers!
Assignee: infra → akrug
Reviewed and planned for future enhancement to the redirect feature. Thanks.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.