Skip to content

Revert "Revert "Whitelist cookies in development""#4359

Merged
wjordan merged 3 commits into
cdo-cloudfrontfrom
revert-4357-revert-4341-cookie_whitelist
Oct 8, 2015
Merged

Revert "Revert "Whitelist cookies in development""#4359
wjordan merged 3 commits into
cdo-cloudfrontfrom
revert-4357-revert-4341-cookie_whitelist

Conversation

@philbogle

Copy link
Copy Markdown
Contributor

Restores #4341 (which I inadvertantly merged)

Follow-on to #4207
.
This PR adds a CookieWhitelist Rack middleware that whitelists cookies based on the path-based cache behaviors defined in http-cache configuration used by CloudFront/Varnish.

This will allow our development environment to approximate the cookie-whitelisting action provided by our HTTP cache layer (improving our dev-prod parity and helping avoid environment-difference issues in development), without adding additional infrastructure dependencies to our development setup.

Comment thread lib/cdo/rack/whitelist_cookies.rb Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flow here might be clear if this was written as a case statement.

@philbogle

Copy link
Copy Markdown
Contributor Author

Looks good, one code structure nit and some missing escaping (I believe).

wjordan added a commit that referenced this pull request Oct 8, 2015
…okie_whitelist

Revert "Revert "Whitelist cookies in development""
@wjordan wjordan merged commit 525f508 into cdo-cloudfront Oct 8, 2015
@wjordan wjordan deleted the revert-4357-revert-4341-cookie_whitelist branch October 8, 2015 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants