Caching Everything Other than API endpoint

Hey,
Is there a way I can Cache everything other than my /api/* end-point. How would I go about creating Page Rules for this.

Page Rule 1 : Cache Everything domain.com/*
Page Rule 2 : Bypass Cache domain.com/api/*

Will this work? Or should I be ordering the Page rules the other way around?

Precisely. You need to switch the page rule order.

3 Likes

This topic was automatically closed after 31 days. New replies are no longer allowed.