# Caching

When using Platformatic Astro, you can easily cache your pages and actions.

First of all, make sure you use a [gateway](/docs/latest/reference/gateway/overview/) as the entrypoint of the application.

Then, enable `httpCache` in the [application configuration](/docs/latest/reference/runtime/configuration/#httpcache) file.

Finally, make sure your pages return a proper `Cache-Control` header.
See the [Astro documentation](https://docs.astro.build/en/guides/on-demand-rendering/#astroresponseheaders) to learn more.

You are all set!


# Issues

If you run into a bug or have a suggestion for improvement, please
[raise an issue on GitHub](https://github.com/platformatic/platformatic/issues/new).