Ghost/ghost/core/test/e2e-api/members
Chris Raible 4a6d427673
Removed members caching cookies when no member is logged in (#20349)
ref
https://linear.app/tryghost/issue/KTLO-58/dont-send-ghost-acess-cookies-if-no-member-is-logged-in

- Currently when member's caching is enabled, but no member is logged
in, we always send `ghost-access=null;` and `ghost-access-hmac=null;`
cookies in the requests to `/members/api/member/`. This is done to clear
the cookies, but an unintended consequence is that these requests can
never be cached since there is a cookie in the response.
- This PR removes the cookies from the requests when no member is logged
in, the cookies will not be sent, allowing the requests to be cached
- It also unsets the cookies when deleting a member's session, so that
the cookies are not sent in the requests after the member logs out
- This should improve the cache hit ratio with members caching enabled
2024-06-06 16:28:36 -07:00
..
__snapshots__ Removed members caching cookies when no member is logged in (#20349) 2024-06-06 16:28:36 -07:00
announcement.test.js Moved announcement bar settings to Frontend Members API 2023-04-27 14:01:36 +02:00
create-stripe-checkout-session.test.js Added Stripe Mocker to make testing easier (#16396) 2023-03-10 18:43:35 +01:00
donation-checkout-session.test.js 🔒 Added support for logging out members on all devices (#18935) 2023-11-15 17:10:28 +01:00
feedback.test.js Updated to use assert/strict everywhere (#17047) 2023-06-21 09:56:59 +01:00
middleware.test.js Removed members caching cookies when no member is logged in (#20349) 2024-06-06 16:28:36 -07:00
recommendations.test.js Removed usage of unquoted ids in filter strings (#19070) 2023-11-21 09:45:36 +01:00
send-magic-link.test.js Revert "Added new member signup flow behind labs flag (#19986)" (#20130) 2024-05-02 13:02:32 -07:00
signin.test.js Revert "Added new member signup flow behind labs flag (#19986)" (#20130) 2024-05-02 13:02:32 -07:00
site.test.js Cleaned up duplicate await 2023-12-13 11:54:31 +01:00
webhooks.test.js Revert "Added support for importing Stripe Coupons as Offers (#17415)" (#17915) 2023-09-01 09:49:29 +02:00
well-known.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00