configure-pagination-prefetch-and-cache-policy

Configures pagination and caching for web applications using the storefront-data module.

2|Updated Dec 2, 2024
One-click install
npx skills add https://github.com/TechsioCZ/new-engine --skill configure-pagination-prefetch-and-cache-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configure-pagination-prefetch-and-cache-policy
Source: https://github.com/TechsioCZ/new-engine/tree/main/libs/storefront-data/skills/configure-pagination-prefetch-and-cache-policy
Command: npx skills add https://github.com/TechsioCZ/new-engine --skill configure-pagination-prefetch-and-cache-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Tuning storefront-data cacheConfig, skipIfCached, skipMode, and prefetch flags can be complex; this skill provides a structured approach to manage pagination and prefetch alignment with shared query keys and cache strategy rules.

Core Features & Use Cases

  • Centralizes cache defaults for semiStatic data and product/catalog reads.
  • Provides shared prefetch helpers and page planning to coordinate pagination and prefetch behavior.
  • Use Case: When building a storefront, apply this policy to ensure consistent prefetching across category pages and product listings.

Quick Start

Apply the preset to enable default cacheConfig and prefetch rules for storefront data.

Frequently Asked Questions about configure-pagination-prefetch-and-cache-policy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure pagination and prefetch policies for a storefront data cache?

Storefront data cache and prefetch policies are configured by applying a reusable planning structure that aligns shared query keys with cache strategy rules. This coordinates skip behaviors and prefetch flags across listing pages and product catalogs.

What is the best way to manage skipIfCached and skipMode flags for storefront listings?

Managing skipIfCached and skipMode flags requires a centralized policy that applies consistent cacheConfig defaults across semiStatic data and product reads. This structured approach prevents complex, misaligned cache behaviors in storefronts.

How does page planning coordinate prefetch behavior across product catalogs?

Page planning coordinates prefetch behavior by using shared prefetch helpers to align pagination across category pages and product listings. This ensures consistent data fetching and cache utilization throughout the storefront.

Can I use createCacheConfig defaults with custom storefront-data core modules?

Yes, the pagination and prefetch policy integrates directly with createCacheConfig defaults and storefront-data core modules. It provides shared helpers that satisfy integration requirements while maintaining cache strategy rules.

When do I need a centralized cache policy for storefront pagination?

A centralized cache policy is needed when building a storefront with multiple category pages and product listings. It ensures consistent prefetching and prevents the complexity of individually tuning cacheConfig and skip behaviors for each query.