How to manage Cache on Frontity site?

How can I set caching functionalities on my frontity site?
have any steps for set this?

please give me some reply ASAP about this topic

Thank You.

Hi @HardikDevani

The best and easiest way to have your Frontity site cached is to choose a host that offers the stale-while-revalidate cache control directive. Check our deployment guides - in particular we recommend Vercel.

If you need to implement your own caching strategy then the MDN page on caching is a great resource and covers the stale-while-revalidate cache control directive.

Oh, and you can also use Frontity in Embedded mode in a WordPress hosting that offers caching, like Pantheon, Flywheel, WP Engine… :slightly_smiling_face:

Or use Frontity in Embedded mode with the Simple Cache plugin (you need to enable the REST API cache and the Restore Headers option).

Frontity Embedded mode: Frontity Embedded Mode - API Reference

Hi @HardikDevani

We’ve just published a Caching guide for Frontity projects

In the Architecture section you have the caching recommendations for every Frontity Mode

Hope this helps

2 Likes