lee_mcr
Member
OP
- Joined:
- Sep 2024
- Posts:
- 242
- From:
- Manchester, UK
Right then, I've proper gone and done it. Set up Vultr's CDN last night, thought I was being clever with a Page Rule that caches "everything." Now /wp-admin serves a cached login page, I submit credentials, and... nothing. Cookie gets set, page refreshes to cached login again. Infinite loop of sadness.
Tried purging cache. Tried browser incognito. Tried shouting at monitor.
Cheers lads, how do I un-break this without disabling the whole zone?
Honey badger don't care... about downtime
GeorgeNmp
Member
AS64512
- Joined:
- May 2024
- Posts:
- 218
- From:
- Ashburn, US
Your Page Rule likely matches `*example.com/*` with Cache Level: Everything. WordPress admin requires explicit cache bypass for cookie-bearing requests.
Correct approach:
- Cache bypass: `*example.com/wp-admin*`
- Cache bypass: `*example.com/wp-login.php`
- Dynamic content: match on `wordpress_logged_in` cookie presence
- Origin-Cache-Control: respect `Cache-Control: no-store` headers
Also ensure your origin sends proper headers. Many WordPress installs default to no cache directives, relying on the CDN to be intelligent. It is not.
iBGP, eBGP, don't care, just peer