Just wanted to jump in here to update on this.
I have followed @skyeto’s blog post to set up BunnyCDN with a Ghost site and the actual caching worked out of the box. What didn’t work was accessing the /ghost
route to edit the site and logging in to the portal as a member.
My assumption is that BunnyCDN has changed since June 2021/2022, so here’s what ended up working for me, in case anyone stumbles upon this thread in the future (just adding differences to the original post):
Edge Rules
To successfully bypass all API requests (relevant for the admin panel to work properly) you need to set “Cache Time” and “Browser Cache Time” to 0 for the following routes:
*/ghost*
*/members*
Caching settings that need adjustment
In the “General” caching settings:
- “Query String Sort” needs to be off. This is necessary for the members login to the portal to work
- “Strip Response Cookies” also needs to be off. Otherwise you won’t be able to log into the
/ghost
route, meaning you can’t edit your site.
Hope this helps
Edit: just put the findings into a blog post to go into a bit more details: