Menu
Guides

Release Notes
Release Notes

FastStore: Use `GET` requests for custom queries to improve store caching

Improved

Ensure proper caching by using GET requests for custom queries in FastStore.

April 30, 2025
1 min read

To ensure proper caching behavior when navigating store pages (such as Home, PDP, and PLP), use GET instead of POST for API requests in custom queries. GET requests are cacheable by default, while POST requests bypass caching.

What has changed?

Previously, some custom queries used POST methods, which prevented caching. Now, queries with the Query suffix in their names automatically use GET. For example, rename getOrderForm to getOrderFormQuery.

What needs to be done?

To enable proper caching in custom queries:

  1. Check the custom queries in your project that use the POST method.
  2. Rename the queries by adding the Query suffix to default to GET. For example:
  • Uncached (POST): getOrderForm
  • Cached (GET): getOrderFormQuery (ensures proper store caching)